home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1994 November / Cd Ware (Nro. 2) - Epimundo.iso / DOS / WP / NEDIT.ZIP / NED.DOC < prev    next >
Encoding:
Text File  |  1994-06-01  |  230.5 KB  |  6,547 lines

  1.  
  2.            NED v1.7a User's Guide                            Page   1
  3.  
  4.  
  5.  
  6.                            NED(tm) v1.7a User's Guide
  7.  
  8.                            ,
  9.                       _   /_  __.  __  _  , , , __.  __  _
  10.                     _/_)_/ /_(_/|_/ (_</_(_(_/_(_/|_/ (_</_
  11.  
  12.  
  13.                             DEFINITION OF SHAREWARE
  14.  
  15.            Shareware  distribution    gives  users  a  chance  to  try
  16.            software before buying it. If you try a Shareware program
  17.            and continue  using it,    you are  expected  to  register.
  18.            Individual programs    differ on  details --  some  request
  19.            registration while  others require  it,    some  specify  a
  20.            maximum trial period. With registration, you get anything
  21.            from the  simple right  to continue using the software to
  22.            an updated program with printed manual.
  23.  
  24.            Copyright laws  apply to  both Shareware  and  commercial
  25.            software, and  the copyright  holder retains  all rights,
  26.            with a few specific exceptions as stated below. Shareware
  27.            authors     are   accomplished   programmers,     just    like
  28.            commercial authors,    and the  programs are  of comparable
  29.            quality. (In  both cases, there are good programs and bad
  30.            ones!)  The     main  difference    is    in     the  method  of
  31.            distribution. The author specifically grants the right to
  32.            copy and  distribute the  software,    either    to    all  and
  33.            sundry or  to a specific group. For example, some authors
  34.            require    written  permission  before  a    commercial    disk
  35.            vendor may copy their Shareware.
  36.  
  37.            Shareware  is  a  distribution  method,    not  a    type  of
  38.            software. You  should find software that suits your needs
  39.            and pocketbook, whether it's commercial or Shareware. The
  40.            Shareware system makes fitting your needs easier, because
  41.            you can    try before    you buy. And because the overhead is
  42.            low, prices    are low  also. Shareware  has  the    ultimate
  43.            money-back guarantee -- if you don't use the product, you
  44.            don't pay for it.
  45.  
  46.                             DISCLAIMER - AGREEMENT
  47.  
  48.            Users of NED(tm) v1.7a must    accept    this  disclaimer  of
  49.            warranty:
  50.  
  51.            "NED v1.7a  IS SUPPLIED  AS IS.  THE AUTHOR DISCLAIMS ALL
  52.            WARRANTIES,    EXPRESSED  OR  IMPLIED,  INCLUDING,  WITHOUT
  53.            LIMITATION, THE    WARRANTIES    OF    MERCHANTABILITY  AND  OF
  54.            FITNESS FOR    ANY PURPOSE. THE AUTHOR ASSUMES NO LIABILITY
  55.            FOR DAMAGES,  DIRECT OR    CONSEQUENTIAL, WHICH  MAY RESULT
  56.            FROM THE USE OF NED v1.7a.
  57.  
  58.            GOOD DATA  PROCESSING PROCEDURE DICTATES THAT ANY PROGRAM
  59.            BE  THOROUGHLY    TESTED    WITH  NON-CRITICAL    DATA  BEFORE
  60.            RELYING ON  IT. THE    USER MUST  ASSUME THE ENTIRE RISK OF
  61.            USING THE  PROGRAM. ANY    LIABILITY OF  THE AUTHOR WILL BE
  62.            
  63.            NED v1.7a User's Guide                            Page   2
  64.  
  65.            LIMITED EXCLUSIVELY    TO PRODUCT    REPLACEMENT OR REFUND OF
  66.            THE REGISTRATION FEE TO REGISTERED USERS."
  67.  
  68.            NED v1.7a  is a "shareware program" and is provided at no
  69.            charge to  the user for evaluation. Feel free to share it
  70.            with your friends, but please do not give it away altered
  71.            or as   part  of another  system. The   essence of "user-
  72.            supported" software is to provide personal computer users
  73.            with quality  software without  high prices,  and yet  to
  74.            provide incentive  for programmers to continue to develop
  75.            new products.  If you  find this  program useful and find
  76.            that you  are using    NED v1.7a  and continue  to use  NED
  77.            v1.7a after    a reasonable trial period, you should make a
  78.            registration payment  of $50  to DAVID  L. DIGHT. The $50
  79.            registration fee will licence one copy for use on any one
  80.            computer at    any one  time. You    must treat this software
  81.            just like a book. An example is that this software may be
  82.            used by any number of people and may be freely moved from
  83.            one computer  location to another, so long as there is no
  84.            possibility of  it being  used at one location while it's
  85.            being used  at another.    Just as a book cannot be read by
  86.            two different persons at the same time.
  87.  
  88.            Commercial users  of NED  v1.7a must register and pay for
  89.            their copies  of NED v1.7a within 30 days of first use or
  90.            their licence  is withdrawn.   Site-Licence    arrangements
  91.            may be made by contacting DAVID L. DIGHT.
  92.  
  93.            Anyone  distributing   NED  v1.7a   for     any   kind   of
  94.            remuneration must  first contact  DAVID L.  DIGHT at  the
  95.            address below for authorisation.
  96.  
  97.            This  authorisation    will  be  automatically  granted  to
  98.            distributors recognized    by the    Association of Shareware
  99.            Professionals (ASP)    as adhering  to its  guidelines  for
  100.            shareware distributors,    and  such distributors may begin
  101.            offering NED  v1.7a immediately    (However DAVID    L. DIGHT
  102.            must still be advised so that the distributor can be kept
  103.            up-to-date with the latest version of NED v1.7a).
  104.  
  105.            You are    encouraged to  pass a copy of NED v1.7a along to
  106.            your friends  for evaluation.   Please  encourage them to
  107.            register their  copy if    they find  that they can use it.
  108.            All registered  users will  receive a  copy of the latest
  109.            version of the NED v1.7a system. If you do pass on a copy
  110.            please make    sure you  include all  the system files with
  111.            documents. The file NED17A.EXE is a self-extracting exec-
  112.            utable archive and contains all files with this release.
  113.            
  114.            NED v1.7a User's Guide                            Page   3
  115.  
  116.            *********************************************************
  117.  
  118.               NED(tm) v1.7a (C) Copyright 1987-93 David L. Dight
  119.                              All Rights Reserved.
  120.  
  121.                     Additional analysis by Francis C. Crisp
  122.  
  123.                   P.O.    Box 280,  Kings Cross,    N.S.W.    2011
  124.                   AUSTRALIA. +61 2 3314521,  CIS:100033,2563
  125.  
  126.                               _______
  127.                          ____|__     |                  (R)
  128.                       --|        |     |-------------------
  129.                         |    ____|__  |    Association of
  130.                         |  |       |_|    Shareware
  131.                         |__|   o   |    Professionals
  132.                       -----|   |   |---------------------
  133.                            |___|___|    MEMBER
  134.  
  135.            When you  register you  receive a 250 page manual and the
  136.            latest version of NED and utilities as well as info about
  137.            new    versions  when    they  occur  and  support.    See  the
  138.            Software Registration Form at the end  of the  manual  or
  139.            REGISTER.FRM with the release.
  140.  
  141.  
  142.            IBM, PC-XT,    PC-AT, PS/2,  PC-DOS, MDA,    CGA, EGA and VGA
  143.            are    registered     trademarks  of  International    Business
  144.            Machines Corporation. MS-DOS is a registered trademark of
  145.            Microsoft  Corporation.     Compaq  386   is  a  registered
  146.            trademark of Compaq Corporation. Epson FX is a registered
  147.            trademark of Epson  America    Incorporated.  Hercules is a
  148.            registered trademark of Hercules Computer Technology.  HP
  149.            LaserJet is a registered trademark of the Hewlett-Packard
  150.            Company.
  151.  
  152.            Revision 1.7.a.5 01-Jun-1994.
  153.            
  154.            NED v1.7a User's Guide                            Page   4
  155.  
  156.            *********************************************************
  157.            NED v1.7a User's Guide
  158.            Table of contents
  159.  
  160.            Introduction                                            6
  161.                 i     Introduction                                   6
  162.                 ii     How to Use this Manual                        7
  163.                 iii  Notational Conventions                        7
  164.  
  165.            Chapter 1. Installing NED                               9
  166.                 1.1  Package Contents                               9
  167.                 1.2  System Requirements                           9
  168.                 1.3  Installation                                   9
  169.  
  170.            Chapter 2. Getting Started                              11
  171.                 2.1  Creating or Editing a File                   11
  172.                 2.2  The Editing Screen                           11
  173.                 2.3  Entering Text                                  12
  174.                 2.4  Getting Help                                  13
  175.                 2.5  Basic Movement Keys                          13
  176.  
  177.  
  178.            Chapter 3. Learning More                               15
  179.                 3.1  Using the Command Area                       15
  180.                 3.2  Managing Multiple Files                      16
  181.                 3.3  Text Editing Functions                       17
  182.                 3.4  Using Block Mode                              18
  183.                 3.5  Using Word Wrap                              19
  184.                 3.6  The Status Screen                              20
  185.                 3.7  Searching, Replacing and Matching              21
  186.                 3.8  Quitting NED                                  23
  187.                 3.9  The Backup System                              24
  188.  
  189.            Chapter 4. Advanced Features                           26
  190.                 4.1  Configuring NED                              26
  191.                 4.2  Using File Lists                              30
  192.                 4.3  File Display Mode                              31
  193.                 4.4  Creating and Using Macros                      33
  194.                 4.5  Printing a File                              34
  195.                 4.6  Using the Print Spooler                      35
  196.                 4.7  Using the Calculator                          36
  197.                 4.8  Using the ASCII Tables                       37
  198.                 4.9  Using Colours 43/50 line modes.              37
  199.  
  200.            Chapter 5. System Reference                              40
  201.                 5.1  Command Reference                              40
  202.                 5.2  Function Reference                           55
  203.                 5.3  Configuration Reference                      73
  204.                 5.4  Block Mode Reference                          80
  205.                 5.5  File Display Reference                       83
  206.                 5.6  Regular Expression Reference                  85
  207.                 5.7  Printer Command Reference                      89
  208.  
  209.            Chapter 6. Tutorials                                   92
  210.                 6.1  Introduction                                  92
  211.                 6.2  Tutorial One - A DOS menu system              92
  212.                 6.3  Tutorial Two - Programming with NED          99
  213.  
  214.            
  215.            NED v1.7a User's Guide                            Page   5
  216.  
  217.            Appendix A. Messages                                  106
  218.            Index                                                 113
  219.            
  220.            NED v1.7a User's Guide                            Page   6
  221.  
  222.            *********************************************************
  223.            NED v1.7a User's Guide
  224.  
  225.            i Introduction
  226.  
  227.            NED    is    a  high  performance  text    editor    specifically
  228.            designed for  programmers and  people who  need to use an
  229.            editor regularly.  It is  simple to    use and  robust  yet
  230.            fully featured for the serious user. NED has an intuitive
  231.            'feel' encouraging experimentation and confidence whether
  232.            you are    just learning about editors or you are a 'power'
  233.            user. Here  are just  some of the reasons you'll find NED
  234.            one of the best editors you've ever used:
  235.  
  236.            1. Edit     multiple  files.  Up to   ten (10) files may be
  237.            edited at  once. You  can move  between open files with a
  238.            single keystroke.
  239.  
  240.            2. Expansion   of   wildcard   file    specifications    from
  241.            command line and the use of File Lists. NED allows you to
  242.            predefine a    list of files to edit. If you are working on
  243.            a multi-moduled    system this  feature will  save you time
  244.            specifying file names. You can also browse through drives
  245.            and directories for files to open.
  246.  
  247.            3. On line Calculator, ASCII tables and help screens.
  248.  
  249.            4. Fast.  NED has  been designed  to make  maximum use of
  250.            your video hardware and to be as fast as possible.
  251.  
  252.            5. Full    support for   Hercules,  EGA   and VGA    adaptors
  253.            including 43 and 50 line modes.
  254.  
  255.            6. Special    functions  such   as brace/bracket matching,
  256.            field  copying,     character    case   flip,  date/time  and
  257.            filename insertion  into your  file. These  make  editing
  258.            easier, quicker and more productive.
  259.  
  260.            7. Embedded     print    commands   and print  while you work
  261.            spooler.
  262.  
  263.            8. Powerful    Regular Expression    Language makes searching
  264.            and replacing easier and more effective.
  265.  
  266.            9. Shell  to DOS.  NED is  compact enough to allow you to
  267.            run most  applications when    in the    shell.    Execute  DOS
  268.            commands from within NED.
  269.  
  270.            10. The    editing   environment is fully configurable with
  271.            CONFIG.NED.
  272.  
  273.            11. Block  copy,   cut and  paste from within lines to an
  274.            entire file.  Block functions  allow  formatting  of  the
  275.            block, or copying blocks to the search expression.
  276.  
  277.            12. NED    allows you to prepare text for use with desk top
  278.            publishing systems  with features  like word  wrap  left,
  279.            right  and    centre    justify,  escape,  tab    and  control
  280.            
  281.            NED v1.7a User's Guide                            Page   7
  282.  
  283.            character insertion.
  284.  
  285.            13. Functionality.  NED has    the most exhaustive function
  286.            capability of any editor on the market.
  287.  
  288.            14. Clear,  concise,   easy    to    read  and  fully  cross-
  289.            referenced User's Guide.
  290.  
  291.            15. Keyboard  macros. You  may record, save and use up to
  292.            20 macros  at any  one time. Macros save time by reducing
  293.            repetitive keystrokes.
  294.  
  295.            The User's Guide will help you get the most out of NED.
  296.  
  297.            ii How to Use this Manual
  298.            NED is  designed   for    both  the  first  time    and  the
  299.            experienced user.  Different parts  of  this  manual  are
  300.            intended for users with different needs.
  301.  
  302.            Chapter 1  Installing NED  explains how to install NED on
  303.            your machine.  It  also    explains  NED's  minimum  system
  304.            requirements and the package contents.
  305.  
  306.            Chapter 2  Getting Started  describes the basics of using
  307.            NED such  as how  to create    a  file,  understanding  the
  308.            editing screen,    entering text  and getting    help. It  is
  309.            designed as    an introduction  to both  NED and editing in
  310.            general.
  311.  
  312.            Chapter 3  Learning More describes how to use the command
  313.            area,  manage   multiple  files,  advanced  text  editing
  314.            functions, block mode commands, word wrap, search for and
  315.            replace text.
  316.  
  317.            Chapter 4  Advanced Features  describes    the  NED's    more
  318.            advanced features  such as  configuring NED,  File Lists,
  319.            keyboard Macros and printing.
  320.  
  321.            Chapter 5  System Reference    provides  a  full  reference
  322.            manual  for     all  of   NED's  commands,  function  keys,
  323.            configuration statements,  printer commands, File Display
  324.            keys,  Block   Mode    keys   and    the  Regular  Expression
  325.            Language.
  326.  
  327.            Chapter 6  Tutorials provides two 'hands on' tutorials on
  328.            using NED.
  329.  
  330.            Appendix A  Messages lists  all the messages that you may
  331.            encounter using NED with a brief comment on each. READ.ME
  332.            File  on   the  system  disk  documents    corrections  and
  333.            enhancements made  to both  the program    and  the  user's
  334.            guide after the user's guide was printed.
  335.  
  336.            iii    Notational Conventions
  337.            This section  describes the    notational conventions    used
  338.            throughout this manual.
  339.  
  340.            placeholders        Items in italics are placeholders for
  341.            
  342.            NED v1.7a User's Guide                            Page   8
  343.  
  344.                 types of  information you  must supply,  for example
  345.                 pathname, macrofile,  number,  to  and    from.  Other
  346.                 words appear in italics for emphasis.
  347.  
  348.            [optional items]    Items   enclosed   by   bold   square
  349.                 brackets are optional.
  350.  
  351.            repeating items...  Three bold  dots  following    an    item
  352.                 indicate that items of the same form may be repeated
  353.                 a number of times.
  354.  
  355.            {item1|item2}       This indicates  that you    have    a
  356.                 choice between    two   or more  items. Bold    brackets
  357.                 enclose all  the choices  and the bold vertical bars
  358.                 separate the  choices. One    of    the  items    must  be
  359.                 chosen, unless all the choices Are optional.
  360.  
  361.            examples            These  will     be  indented  and    will
  362.                 appear in a non-proportional typeface.
  363.  
  364.            screen examples       These appear  in the lineprinter font
  365.                 and are enclosed in a box.
  366.  
  367.            <keyname>           The    angle    brackets  indicates  the
  368.                 function key  <keyname> that  is to  be entered. For
  369.                 example: <Enter>.
  370.  
  371.            KEYNAME               This  refers   to  a   function     key
  372.                 (KEYNAME) when    it is  mentioned within a paragraph.
  373.                 For example: "if you press ENTER...".
  374.  
  375.            ALT                   This represents the alternate key(s).
  376.                 ALT N  means the  ALT    key must be pressed with the
  377.                 'n' key to generate ALT N.
  378.  
  379.            SHIFT               This represents    either the    left  or
  380.                 right shift  key. In  some cases it will be preceded
  381.                 by a LEFT or RIGHT specification.
  382.  
  383.            CTRL or ^           These symbols  represent the  control
  384.                 key(s). SECTION  1.0  These  will  appear  in  small
  385.                 capitals and  refer to    chapter sections  where more
  386.                 information about a topic may be found.
  387.  
  388.  
  389.            
  390.            NED v1.7a User's Guide                            Page   9
  391.  
  392.            *********************************************************
  393.            NED v1.7a User's Guide
  394.            Chapter 1 Installing
  395.  
  396.            1.1    Release Contents
  397.  
  398.            See the file PACKING.LST for contents.
  399.  
  400.            1.2 System Requirements
  401.            IBM XT AT PS/2 386 486 or compatible.
  402.            PC-DOS/MS-DOS 2.0 or later.
  403.            Minimum 256Kb installed RAM.
  404.            MDA, CGA, EGA, VGA,    Hercules or  compatible  adapter and
  405.            monitor.
  406.            At least one floppy-disk drive  (two are recommended or a
  407.            hard-disk and a floppy-disk drive).
  408.            Printer (optional).
  409.  
  410.  
  411.            1.3 Installation
  412.            It is  best to  have the drive:\directory that NED exists
  413.            on your    PATH   so that     you  may  use NED    in what ever
  414.            directory you  are in.  This is    also necessary for using
  415.            the Help screens and for the Calculator and ASCII tables.
  416.            The PATH  tells DOS    where to  look for    executable files
  417.            which in  this case    are NED,  NHELP, NCAL  In the  above
  418.            example,
  419.            
  420.            NED v1.7a User's Guide                            Page  10
  421.  
  422.  
  423.                 PATH=C:\;C:\DOS;C:\UTILS
  424.  
  425.            If you  normally have  your    programs  in  the  directory
  426.            'C:\UTILS' and  you wish  to work  in a    number of  other
  427.            directories then  having NED  in a  directory which is on
  428.            the PATH  means you    don't have    to worry about where NED
  429.            resides.
  430.  
  431.  
  432.            
  433.            NED v1.7a User's Guide                            Page  11
  434.  
  435.            *********************************************************
  436.            NED v1.7a User's Guide
  437.            Chapter 2 Getting started
  438.  
  439.            2.1    Creating or Editing a File
  440.            The DOS command line syntax for NED is:
  441.  
  442.                 ned [file1 file2 ... filen]
  443.  
  444.            Where  file     may  be   either    a    pathname,    wildcard
  445.            specification or  an 'At'  file    (e.g.  @files.ned).  The
  446.            following DOS command lines provide examples:
  447.  
  448.                 ned sample.c
  449.                 ned sample.c c:\mydir\test.prg *.bat
  450.  
  451.            In the first example, 'sample.c' is loaded. In the second
  452.            example NED    will load  up 'sample.c'  to start    with. If
  453.            sample.c doesn't exist, you will be prompted:
  454.  
  455.                 Ok to Create (Y/N) ?
  456.  
  457.            If you  answer yes  you may    begin entering    text, if you
  458.            answer no,  NED will exit you to DOS. The remaining files
  459.            ('c:\mydir\test.prg' and  all  matching    *.bat)    will  be
  460.            added to your File List and may be opened later using the
  461.            OPEN command.  Of course  you only  have to    specify  one
  462.            filename on the command line.
  463.  
  464.            NED accepts    any valid DOS wildcard specification. As NED
  465.            loads, it  attempts to  place every    matching filename in
  466.            the    File   List.  If   no  matches    can  be  found,  the
  467.            specification is  left as  a filename. You may have up to
  468.            512    filenames    in    the  File  List  from  one    or    more
  469.            wildcards. You  can increase this  number with the DIRMAX
  470.            statement in CONFIG.NED.
  471.  
  472.            You can    only edit  text files  with NED.  If you attempt
  473.            editing    other    types    of     files     the   results     are
  474.            unpredictable. NED  will try  to load  256 characters  to
  475.            each line  if no carriage return/line feeds are found. If
  476.            a line  is longer than 256 characters, NED will split the
  477.            line at    256 characters.  NED will  continue to split the
  478.            line until the remainder is less than 256.
  479.  
  480.            If you  try to save a file that was loaded in this manner
  481.            it will    be completely  corrupted. If  you need to load a
  482.            formatted word-processor  document, save  or convert  the
  483.            file to ASCII format before loading it with NED.
  484.  
  485.            2.2    The Editing Screen
  486.            The screen  is divided into two main 'windows'. The first
  487.            is known as the System window, and the second as the Edit
  488.            window. The System window is designed to display the most
  489.            relevant information  you need  when editing a file. From
  490.            left to right, the top line displays:
  491.  
  492.            Busy/Idle symbol - is an hour glass when NED is busy,
  493.            
  494.            NED v1.7a User's Guide                            Page  12
  495.  
  496.            e.g. when reading a file and is shutters when NED is
  497.            awaiting a command.
  498.            Filename - the filename/pathname of the current area. If
  499.            changes have been made, is in bold. If area is not open,
  500.            '(area unopened)' is displayed.
  501.            Area map - the current area if open is in bright bold
  502.            attribute and other open areas are in bold attribute.
  503.            Areas not open are in normal attribute.
  504.            Available memory - as a percentage free.
  505.            IWCNS - Auto-indent (I), Word-wrap (W), Caps-lock (C),
  506.            Num-lock (N) and Scroll-lock (S) toggles. Bold if on.
  507.            Line and Column - of cursor.
  508.  
  509.            The second  line is    the command area. When you press the
  510.            ESC key    the cursor    moves to this line. All commands and
  511.            parameters are  entered and shown here. The ruler display
  512.            appears on  this line  when the    cursor is  in  the    Edit
  513.            window. This displays each tab as a 'T' starting from the
  514.            current left  hand column  of the  Edit window. The right
  515.            hand margin is displayed as a 'R' and when the right hand
  516.            margin is   over  a tabstop,  it is    displayed as the 'P'
  517.            over 't'  character. The  following is  an example of the
  518.            default settings:
  519.  
  520.            ....T...T...T...T...T...T...T...T...T...T...T...T...T...T
  521.            ...T...R...T...T...T...
  522.  
  523.            The third  line shows  any confirmation, warning or error
  524.            messages to    the left  and an  abbreviated version of the
  525.            contents of the scrap buffer to the right. See Appendix A
  526.            for a description of NED's messages.
  527.  
  528.            The rest of the screen is known as the Edit window and is
  529.            devoted to  the file  you are  editing. If  the    file  is
  530.            longer than    twenty two    lines, the    first twenty two are
  531.            shown. If  it is  less than twenty two or the Edit window
  532.            is positioned  at the end of the file, a small bold tilde
  533.            (~) appears    on every  unused line  to  the    end  of  the
  534.            window.
  535.  
  536.            2.3    Entering Text
  537.            Entering text  is just  like using  a typewriter. Most of
  538.            the keys  on a  typewriter correspond  to  keys    on    your
  539.            keyboard. Unlike  many editors,    NED allows    you to enter
  540.            text where  ever the  cursor is    located, even if this is
  541.            off the    end of    a line.  This feature  is convenient for
  542.            programming when  formatting  and  commenting  code.  NED
  543.            automatically fills the gap created with spaces. The Edit
  544.            window is  a maximum  256 characters wide and will scroll
  545.            when necessary since NED only allows you to edit in an 80
  546.            character window at one time. The maximum number of lines
  547.            you can edit is 10240 if the MAXLINES statement is set to
  548.            this value  in CONFIG.NED,  see section    4.1 and  5.3 for
  549.            details. The default setting is 5120 lines. To open a new
  550.            line press  ENTER. To  open a  new line above the current
  551.            line press  CTRL  ENTER.  NED  has  an  auto  indentation
  552.            feature. When  on, and  you press  ENTER, NED  places the
  553.            cursor under  the first    non-whitespace character  of the
  554.            
  555.            NED v1.7a User's Guide                            Page  13
  556.  
  557.            previous line.  See the    ENTER and  ALT    I  functions  in
  558.            SECTION 5.2 for further details on Auto indent.
  559.  
  560.            Insert mode    is toggled using the INS key. When in insert
  561.            mode, entered  text pushes all characters in front of the
  562.            cursor including the entered character forward. In insert
  563.            mode the  cursor appears  as a half block. The default is
  564.            overtype mode  where entered  text replaces    the original
  565.            characters on  the line.  The cursor appears as a quarter
  566.            block. Various  functions make  use of  the    insert    mode
  567.            including TAB, ALT F and BS.
  568.  
  569.            To erase  a mistake, backspace (BS) over the character or
  570.            move the  cursor left and press DEL. If you are in insert
  571.            mode, BS has the reverse effect of inserting so that text
  572.            is  dragged     left  towards     the  cursor  (deleting  the
  573.            character to the left of the cursor).
  574.  
  575.            NED allows  high-bit characters (e.g. ruling graphics) to
  576.            be entered  in a  file. You    can use  the ALT  generation
  577.            method (ALT    <ASCII number  of key on numeric pad>) and a
  578.            few Ctrl  generated characters  (e.g. CTRL  G,  CTRL  D).
  579.            However    some  Ctrl    keys  have    special  functions.  For
  580.            example to enter an escape character into your file press
  581.            CTRL ESC  since the    ESC key  is used  to enter    or    exit
  582.            Command mode.
  583.  
  584.            The TAB    key  is  worth    special  mention.  Under  normal
  585.            operation this  moves the cursor one tabstop to the right
  586.            (default four  spaces) and SHIFT TAB moves the cursor one
  587.            tabstop to the left. If insert is on and hard-tab is off,
  588.            a tabstop  is inserted  at the  cursor (the corresponding
  589.            number of  spaces pushing  text right)  and the SHIFT TAB
  590.            deletes a  tabstop (dragging  text left). However, if the
  591.            hard-tab toggle is set (ALT T) tab characters (chr 9) are
  592.            entered instead.
  593.  
  594.            2.4 Getting Help
  595.            To get  help press  the F1  key. NHELP.EXE must be in the
  596.            current directory  or on  the PATH. A brief page index is
  597.            given and  you can  type the  page-number you need or you
  598.            can browse  using the  PGDN or  PGUP keys. Alternatively,
  599.            you can    issue the  HELP command  which takes an optional
  600.            starting page number, for example:
  601.  
  602.                 <Esc>H5<Enter>
  603.  
  604.            will take  you to the fifth help screen. Further help can
  605.            be found  in the  function/command reference  sections of
  606.            this manual.
  607.  
  608.            2.5 Basic Movement Keys
  609.            NED gives  you a 'window' on the file you are working on.
  610.            Within the  window the  cursor may be positioned to enter
  611.            or edit text. In addition to the LEFT, RIGHT, UP and DOWN
  612.            keys the following positioning keys may be used:
  613.  
  614.                HOME           start of line
  615.            
  616.            NED v1.7a User's Guide                            Page  14
  617.  
  618.                END              end of line
  619.                CTRL RIGHT      next word
  620.                CTRL LEFT      previous word
  621.                ALT A          goto column 1
  622.                ALT Z          goto column 256
  623.                ALT S          goto start window
  624.                ALT E          goto end window
  625.                ALT N          next line
  626.                ALT P          previous line
  627.                CTRL PGDN      bottom of window
  628.                CTRL PGUP      top of window
  629.  
  630.            When the  end of the window is reached the screen will be
  631.            scrolled either    up or down. You can also re-position the
  632.            window leaving  the cursor  in the same relative position
  633.            with the following keys:
  634.  
  635.                PGDN      next page (+22 lines)
  636.                PGUP      previous page (-22 lines)
  637.                CTRL HOME start of file
  638.                CTRL END  end of file
  639.  
  640.            See section    5.2 for  more information on these and other
  641.            movement keys.
  642.  
  643.  
  644.            
  645.            NED v1.7a User's Guide                            Page  15
  646.  
  647.            *********************************************************
  648.            NED v1.7a User's Guide
  649.            Chapter 3 Learning More
  650.  
  651.            3.1    Using the Command Area
  652.            NED accepts    commands in  two ways. Firstly, certain keys
  653.            are    assigned   functions  and  are    consequently  called
  654.            function keys.  These include  all the 'F' keys (e.g. F1,
  655.            CTRL F3),  and the ALT keys (e.g ALT F, ALT A). The other
  656.            way is  through the    command area. These commands require
  657.            either a parameter or confirmation.
  658.  
  659.            Pressing ESC  takes the cursor from where ever you are in
  660.            the Edit  window to    the 2nd  line (known  as the command
  661.            area). NED  accepts a set of single letter commands which
  662.            represent the  full word of the command. This is known as
  663.            command selection  mode. You  may browse through these by
  664.            pressing the  up/down arrows  or you may simply press the
  665.            letter of the command. For example if you press:
  666.  
  667.                 <Esc>O
  668.  
  669.            NED responds:
  670.  
  671.                 Open:
  672.  
  673.            by printing    the full  name of  the command followed by a
  674.            colon and  placing the  cursor after  the colon. NED then
  675.            waits for  an  optional    parameter.    Some  commands    need
  676.            parameters. Entering  parameters is    just like  using the
  677.            editor. You    may use INS, DEL or BS and some of the other
  678.            editing keys  to  type  your  parameter.  Once  you    have
  679.            entered the    parameter you  must press  ENTER again.  The
  680.            command is then executed.
  681.  
  682.            For commands  that don't  need parameters  you must still
  683.            press ENTER    again to  confirm the command. You may abort
  684.            the command    during parameter entry by pressing ESC. This
  685.            will return    you to    command selection mode. If you press
  686.            ESC again  you will    be returned  to the Edit window. You
  687.            can return  directly to    the Edit window by pressing CTRL
  688.            ENTER instead  of ENTER    when executing    a  command.  NED
  689.            remembers the last command you entered so on re- entering
  690.            Command mode  you may  press ENTER  to execute  the    same
  691.            command again.  NED also remembers the last parameter you
  692.            entered. You  may  retrieve    this  with    the  F3  key  in
  693.            parameter entry mode.
  694.  
  695.            Some commands  have special    keys. The  OPEN command lets
  696.            you browse  through files in the File List with the up or
  697.            down arrows.  The SPECIFY  command allows  you to  use or
  698.            edit the  last search  specification by    pressing the  up
  699.            arrow. A  similar function  is provided    with the REPLACE
  700.            command. The OPEN, MACRO and BACKUP commands allow you to
  701.            enter the  File Display    mode through  the  F1  key,  see
  702.            section 4.3 and 5.5 for more information on this mode. If
  703.            you change  to  an  unopened  area  the    cursor    will  be
  704.            confined to    the command  area. You    can only  edit in an
  705.            
  706.            NED v1.7a User's Guide                            Page  16
  707.  
  708.            opened area.
  709.  
  710.            Finally NED allows some of the normal editing commands to
  711.            be executed    from Command  mode. For  example you can use
  712.            most of the window positioning keys (like PGUP or PGDN).
  713.  
  714.            3.2 Managing Multiple Files
  715.            NED allows  you to  edit up    to    ten  files    at    once  by
  716.            assigning each  new file a new area number. To open a new
  717.            file,  use  the    OPEN  command.    Enter  the    filename  or
  718.            pathname of the file you wish to open. Alternatively, you
  719.            can use the up or down arrows to browse the File List or,
  720.            you can    enter File    Display mode by pressing F1 in order
  721.            to browse directories for a file to open.
  722.  
  723.            If you  have entered  your own filename and the file does
  724.            not exist, you will prompted to create it as described in
  725.            section 2.1 above. If you have files in the File List you
  726.            don't have to enter any parameter. NED will take the next
  727.            file from  the File    List and open it (CTRL F1 is a short
  728.            cut for this operation).
  729.  
  730.            Each open  file is  treated individually. NED only allows
  731.            you to  physically edit    one at    a time. Other open files
  732.            are suspended.  You can    of course transfer text from one
  733.            area  to  another  and  similarly  use  the    same  search
  734.            expressions across  all open files. There are a number of
  735.            ways to    change to  another area.  You can  use the    AREA
  736.            command    which  accepts    a  number  from  1    to 10  as  a
  737.            parameter. With    no parameter  AREA simply changes to the
  738.            next area.  You can    use ALT 0 to ALT 9 which corresponds
  739.            to those  area numbers.    Finally, you  can use the Status
  740.            screen described  in section  3.6 below. If you change to
  741.            an unopened    area NED  will automatically take the cursor
  742.            to the command area.
  743.  
  744.            The WRITE  command will    force a  write to  disk even  if
  745.            there have  been no changes made to the file and keep the
  746.            area open  (SHIFT F10 is a short cut for this operation).
  747.            The END command will write the file to disk if there have
  748.            been changes  and then  close the area. The END and WRITE
  749.            commands take an optional pathname parameter which allows
  750.            you to write the file to a different name.
  751.  
  752.            When you have finished with an area you can close it with
  753.            the CLOSE  command. The area is free to be re-opened with
  754.            another file.  You can only edit as many files as can fit
  755.            into memory.  When memory  is getting low, the percentage
  756.            of available memory, displayed in the System window, will
  757.            flash. You  should save your files and close some down to
  758.            free up more memory.
  759.  
  760.            The LAUNDRY    command is very useful when editing multiple
  761.            files. This    command saves  any files  you have open that
  762.            have changed.  Once all    files have been written, you are
  763.            returned  to   your    initial   area.  If   you  wish   to
  764.            periodically save  your work  files    (regular  saving  is
  765.            recommended) then  this command    saves you the trouble of
  766.            
  767.            NED v1.7a User's Guide                            Page  17
  768.  
  769.            having to  work out    which files need to be saved. If you
  770.            want to    selectively  save  changed    files,    the  LAUNDRY
  771.            command takes  an optional  'p' parameter that forces the
  772.            prompt:
  773.  
  774.                 Save this file (Y/N) ?
  775.  
  776.            to appear at every changed file. You may answer
  777.            accordingly.
  778.  
  779.            3.3 Text Editing Functions
  780.            Apart from the general inserting/deleting characters from
  781.            a file, NED provides many other useful editing functions.
  782.            You can    split a  line into    two lines at the cursor with
  783.            SHIFT F3.  Two lines may be joined together at the cursor
  784.            or the end of the line with F3.
  785.  
  786.            You can    copy one  character from  the line    above at the
  787.            current cursor  position using ALT F (called field copy).
  788.            Using SHIFT ALT F does the same except it copies from the
  789.            line  below.  If  the  insert  mode    is    on,  the  copied
  790.            character is inserted into the current line.
  791.            ALT M flips the case of a character (Eg 'm' to 'M' or 'M'
  792.            to 'm'). Left SHIFT ALT M flips to upper case only, Right
  793.            SHIFT ALT  M to    lower case only. ALT G flips the case of
  794.            the whole line.
  795.  
  796.            Text  can   be  justified  within  a  line.    ALT  L    left
  797.            justifies,  ALT     C    centres  a    line  and  ALT    R  right
  798.            justifies. If  the line    is greater    than  80  characters
  799.            long, centre  and right    justify work over the entire 256
  800.            character width.
  801.  
  802.            ALT D  will erase  to the  end of the line and ALT B will
  803.            erase to  the beginning.  ALT K will completely erase the
  804.            line (leaving it blank).
  805.  
  806.            ALT W will delete the next word and ALT Q will delete the
  807.            previous word.  A word is defined as a character or group
  808.            of characters  separated by one or more characters of the
  809.            Interword Delimiter    set.  The  default    delimiter  is  a
  810.            space.  The    set  can  be  modified    with  the  INTERWORD
  811.            command.
  812.  
  813.            SHIFT F2  deletes or  cuts the  current line to the scrap
  814.            buffer. If  the cursor  is not  moved between  successive
  815.            strokes of  SHIFT F2,  deleted lines  will be appended to
  816.            scrap. You  can therefore  delete an entire block of text
  817.            to scrap  by repeating  this keystroke.    However  if  the
  818.            cursor is moved, the next stroke of SHIFT F2 will firstly
  819.            destroy    the  existing  contents  of  the  buffer  before
  820.            cutting the    new line to scrap. An abbreviated version of
  821.            the contents  of the  scrap buffer  is displayed  at  the
  822.            bottom of the System window.
  823.  
  824.            You can    copy a    line to  scrap without    deleting it with
  825.            CTRL F3.  To restore  from the  scrap buffer  use F2. The
  826.            entire contents    of the    scrap will be inserted under the
  827.            
  828.            NED v1.7a User's Guide                            Page  18
  829.  
  830.            current line.  CTRL F2  will insert    the scrap  above the
  831.            current line.
  832.  
  833.            Edits made  within a  line can  be undone  with the ALT U
  834.            key. This means that the line is restored to its original
  835.            state before  you changed it. You may restore the changes
  836.            you have  made to the line before you first pressed ALT U
  837.            by pressing    ALT U  again. There are several restrictions
  838.            with ALT  U. Firstly,  no changes  can be undone once you
  839.            move to    another line.  Secondly, certain functions reset
  840.            the line  so that only further edits may be undone. These
  841.            functions are split and join line entry of the Block Mode
  842.            entry of Command mode entry of Status screen shell to DOS
  843.            insert filename and insert date/time.
  844.  
  845.            3.4 Using Block Mode
  846.            Block Mode  allows you  to manipulate blocks of text more
  847.            efficiently than  on a  line  by  line  or  character  by
  848.            character basis.  NED views    blocks of  text in two ways.
  849.            The multi  line (inter-line)  block handles    each line as
  850.            one unit. A block may contain one or more lines which can
  851.            be copied,  deleted or inserted. The in-line (intra-line)
  852.            block handles  each character  separately.  A  block  may
  853.            contain one    or more  characters  which    may  be  copied,
  854.            deleted or inserted within any one line.
  855.  
  856.            If you  cut an  intra-line block and then restore it, NED
  857.            will insert the block within the current line. If you cut
  858.            an inter-line  block (containing  one or  more lines) and
  859.            restore it,    NED will  insert the block under the current
  860.            line.
  861.  
  862.            To enter  Block mode  press F4. The cursor will change to
  863.            an underscore. You may then outline a block of text using
  864.            most of the cursor movement functions. The outlined block
  865.            will  be  displayed    in    Reverse  Video.  When  you    have
  866.            outlined  the   block,  the     following     functions     are
  867.            available:
  868.  
  869.                Key         Block action
  870.  
  871.                DEL or -  cut to scrap
  872.                INS or +  copy to scrap
  873.                TAB         move right a tabstop
  874.                SHIFT TAB move left a tabstop
  875.                SPACE     move right a space
  876.                BS         move left a space
  877.                L         left justify
  878.                C         centre justify
  879.                R         right justify
  880.                S         copy to the SPECIFY string, intra-line only
  881.                *         copy to last command parameter  F3,  intra-
  882.                          line only
  883.                F4         exit block leaving cursor at start of block
  884.                ESC         exit block mode leaving cursor end of block
  885.  
  886.            The TAB and SHIFT TAB keys move the block to the previous
  887.            or next    tabstop. The  SPACE and  BS keys  move the block
  888.            
  889.            NED v1.7a User's Guide                            Page  19
  890.  
  891.            right or  left a  space. The L, C and R keys left, centre
  892.            or  right   justify    the   block   treating     each    line
  893.            individually.
  894.  
  895.            The 's'    function allows  you to search for a string from
  896.            the file  elsewhere in the file without having to re-type
  897.            it. The    string is also copied to last parameter function
  898.            F3 in the parameter entry mode.
  899.  
  900.            The '*'    function is  also useful  when a string from the
  901.            Edit window is needed as a parameter in Command mode. See
  902.            the Block  Mode reference  section  5.4    below  for    more
  903.            details on these keys.
  904.  
  905.            When text  has been    cut or    copied to  scrap,  NED    will
  906.            display an abbreviation of the scrap to the right of line
  907.            3 of  the screen.  If the  scrap is    inter-line, NED will
  908.            display a 'paragraph' (ASCII 20) character in bold at the
  909.            end of  the block.  If  the    block  is  intra-line,    this
  910.            character will not appear.
  911.  
  912.            With both  types of scrap, NED will attempt to display as
  913.            much of the block as it can. If the width of the block is
  914.            greater than  the display  area or  there are a number of
  915.            lines in  the  block,  NED  will  display  the  first  20
  916.            characters of  the block,  a '/'  character in bold, then
  917.            the last 20 characters of the block.
  918.  
  919.            3.5 Using Word Wrap
  920.            You can    enter text continually without the need to press
  921.            ENTER by  using word  wrap. To  turn word  wrap on or off
  922.            press ALT  V. When  on, 'W'    appears in bold attribute on
  923.            the top    line between  the free    memory %  and  the    line
  924.            counter.
  925.  
  926.            If you type text past the right hand margin, NED wraps it
  927.            from the  beginning of the previous word to the beginning
  928.            of a new line below. The default right hand margin is 65.
  929.            You can    specify a new right hand margin with the 1MARGIN
  930.            command. See section 5.1 for details.
  931.  
  932.            Some keys behave differently when word wrap is on. If you
  933.            are within  a line,    ENTER will    split the  line  at  the
  934.            cursor position,  taking the  cursor to    the new line. If
  935.            you are at the end of a line it behaves as normal. If you
  936.            want to    open a    new line  without splitting  the current
  937.            line, use  CTRL M. When word wrap is off, this key splits
  938.            the current line as above.
  939.  
  940.            The DEL    key joins the next line to the current line when
  941.            the cursor  is at  the end  of the line. If the cursor is
  942.            past the  end of the line, the next line is joined at the
  943.            cursor position.
  944.  
  945.            If you  are at  the beginning  of a    line, and you are in
  946.            insert mode, and you press BS, the current line will join
  947.            itself to  the end  of the  previous line. The Block Mode
  948.            'c' function  and 'r'  function use the right hand margin
  949.            
  950.            NED v1.7a User's Guide                            Page  20
  951.  
  952.            setting when word wrap is on.
  953.  
  954.            You may    can specify whether NED starts up with word wrap
  955.            on or off with the WORDWRAP statement in CONFIG.NED. This
  956.            statement optionally  takes a  right hand margin setting.
  957.            The default setting is:
  958.  
  959.                 WORDWRAP=0,65
  960.  
  961.            See section 5.3 for more details on this statement.
  962.  
  963.            3.6 The Status Screen
  964.            The Status  screen is  designed to  provide    up    to    date
  965.            information on  the file(s) you are working on as well as
  966.            other system  information. It  can be  viewed by pressing
  967.            the F10 key. From left to right the information displayed
  968.            is as follows:
  969.  
  970.            Area        if open in bold attribute if current has an
  971.                        arrow next to it.
  972.            File Name   current name for file
  973.            Size        in bytes at last write
  974.            Lines       number of lines in file
  975.            Last Write  date/time of last write
  976.            Changes       Y/N if file has been changed since last write
  977.  
  978.            All ten    areas  are    scanned.  Empty  areas    display  the
  979.            message "(area  unopened)". If you have made changes to a
  980.            file, 'Y'  will appear  under  the  'Changes'  column  in
  981.            blinking bold attribute.
  982.  
  983.            If a file was opened that could not fit entirely into the
  984.            edit buffer,  the  'Lines'  value  will    also  appear  in
  985.            blinking bold  attribute. You  may also    use  the  Status
  986.            screen to select another area to work in. You can use the
  987.            up or down arrows or type the number of the area you wish
  988.            to use.    Only open  areas may  be selected  this way. The
  989.            following is  an example  of the  remainder of the Status
  990.            screen:
  991.  
  992.            Auto-detab  OFF                   Hard-tab        OFF
  993.            Auto-entab  OFF                   Interword chars ,;:.
  994.            Backup dir  C:\BAK               Maximum lines   1200
  995.            Current dir C:\NEDTUT           Page layout       66,3,3,0
  996.            Spooler       OFF                   File List       FILES.NED
  997.            Strip       ON                   Timeslice       128
  998.            Free memory 446006, 389904 largest block
  999.            Date/Time   Tuesday 01/01/88  12:00 am
  1000.            Serial #    ?????????
  1001.  
  1002.            This displays  the current  settings of    NED. The current
  1003.            directory is  the directory    you were in when you started
  1004.            NED.  The   backup  directory   will   display   "current
  1005.            directory" if no backup directory is specified. The first
  1006.            number of  free    memory    is    the  total    remaining  bytes
  1007.            available for  editing. The    largest block is the largest
  1008.            contiguous block  of memory that can be allocated by DOS.
  1009.            A minimum  64Kb contiguous  block is required to shell to
  1010.            
  1011.            NED v1.7a User's Guide                            Page  21
  1012.  
  1013.            DOS.
  1014.  
  1015.            Unless the  space  character  is  embedded  within  other
  1016.            interword characters,  it may  be difficult to recognize,
  1017.            particularly if it is at the beginning or end of the set.
  1018.            Maximum lines is the maximum number of lines you may have
  1019.            in any  one file. You can only change it by modifying the
  1020.            MAXLINES statement  in CONFIG.NED  and reloading NED. The
  1021.            timeslice value    is the    amount of time allocated between
  1022.            the keyboard  and the  printer when    spooling. The larger
  1023.            the timeslice,  the more  time the keyboard will receive.
  1024.            The following table summarizes the functions available
  1025.            with the Status screen.
  1026.  
  1027.                Key         Action
  1028.  
  1029.                UP         previous area
  1030.                DOWN      next area
  1031.                HOME      first area
  1032.                END         last area
  1033.                0 - 9     goto area 1 to 10
  1034.                ESC         return to your file
  1035.  
  1036.            3.7 Searching, Replacing and Matching
  1037.            NED allows you to search for and optionally replace text.
  1038.            To search  for  text  you  must    first  use    the  SPECIFY
  1039.            command, followed by one of the search keys (F8, SHIFT F8
  1040.            or CTRL    F8). To  replace text you must first SPECIFY the
  1041.            text to look for and then use the REPLACE command to tell
  1042.            NED what you wish to change the text to.
  1043.  
  1044.            The SPECIFY    command accepts  a string  of characters  to
  1045.            search for, for example:
  1046.  
  1047.                 <Esc>Sfor<Enter>
  1048.  
  1049.            tells NED  you wish    to look for the word 'for'. To begin
  1050.            searching, press one of the following keys:
  1051.  
  1052.                Key         Search
  1053.  
  1054.                F8         down from cursor
  1055.                SHIFT F8  up from cursor
  1056.                CTRL F8     down from top of file
  1057.  
  1058.            NED then  displays the  Current Search  Expression  while
  1059.            searching. If  the  pattern    cannot    be    found  NED    will
  1060.            display the following:
  1061.  
  1062.                 (pattern) not found
  1063.  
  1064.            SPECIFY also  accepts  a  string  that  conforms  to  the
  1065.            Regular Expression  Language. Regular  expressions are  a
  1066.            way    of     representing  text   patterns    in     a    symbolic
  1067.            shorthand. The  symbols used  to define these expressions
  1068.            fall into five categories:
  1069.  
  1070.            Symbols that match a specific character
  1071.            
  1072.            NED v1.7a User's Guide                            Page  22
  1073.  
  1074.            Symbols that match any character
  1075.            Symbols that match a character's position on the line
  1076.            Symbols that match any of a set of characters or anything
  1077.            except a set of characters
  1078.            Symbols that let you match the previous symbol any number
  1079.            of times
  1080.  
  1081.            An expression  may contain  one or  more of    any  of  the
  1082.            language symbols.  These  symbols  and  their  usage  are
  1083.            described in  the Regular  Expression Language  Reference
  1084.            section 5.6 below. For example, the command:
  1085.  
  1086.                 <Esc>S^[\s\t]*for<Enter>
  1087.  
  1088.            will search    for the word 'for' preceded by any number of
  1089.            blank characters  (spaces or  tabs) from the start of the
  1090.            line. The  carat (^) symbol refers to the start of a line
  1091.            the square brackets ([]) enclose a character set or class
  1092.            containing in  the above example spaces (\s) or tabs (\t)
  1093.            the asterisk  (*) in this example tells NED to search for
  1094.            the preceding  character class  any number  of times. NED
  1095.            has a  convenient alternative  method  for  specifying  a
  1096.            search string  by using    the 's'  function in Block Mode.
  1097.            This function  only works  with    intra-line    blocks.  See
  1098.            sections 3.4 and 5.4 for details on Block Mode.
  1099.  
  1100.            The REPLACE    command allows you to specify a string which
  1101.            will replace  one or  more  occurrences    of    the  SPECIFY
  1102.            expression (target  pattern). By default NED will replace
  1103.            the next  occurrence of    the target pattern. For example,
  1104.            the command:
  1105.  
  1106.                 <Esc>Sfor<Enter>RFOR<Enter>
  1107.  
  1108.            will replace  the next occurrence of 'for' with 'FOR'. It
  1109.            is likely  that you    will wish to replace all occurrences
  1110.            of the  target pattern in your file. In this case, append
  1111.            a  ',g'     (global)  to  the    replacement  parameter.  For
  1112.            example:
  1113.  
  1114.                 <Esc>Sfor<Enter>RFOR,g<Enter>
  1115.  
  1116.            will replace  all occurrences  of 'for' with 'FOR' in the
  1117.            current file.  You may  only wish  to replace a number of
  1118.            occurrences of  the target  pattern. In    this case append
  1119.            the ',number' you wish to replace. For example:
  1120.  
  1121.                 <Esc>Sfor<Enter>RFOR,3<Enter>
  1122.  
  1123.            will replace  the next  three occurrences  of 'for'    with
  1124.            'FOR' in  the current file. Each time a target pattern is
  1125.            found, NED will prompt:
  1126.  
  1127.                 Replace (Y/N) ?
  1128.  
  1129.            If you answer 'y' NED will replace the string if 'n', NED
  1130.            will continue  searching  if  you  press  ESC,  NED    will
  1131.            terminate the  command. You may suppress the above prompt
  1132.            
  1133.            NED v1.7a User's Guide                            Page  23
  1134.  
  1135.            by appending  a ',n'  to the  replacement parameter.  For
  1136.            example:
  1137.  
  1138.                 <Esc>Sfor<Enter>RFOR,g,n<Enter>
  1139.  
  1140.            will replace  all occurrences of 'for' with 'FOR' without
  1141.            prompting.
  1142.  
  1143.            Finally, the  REPLACE command  can be used to remove text
  1144.            from your  file by  omitting the  replacement string.
  1145.            For
  1146.            example:
  1147.  
  1148.                 <Esc>Sfor<Enter>R,g<Enter>
  1149.  
  1150.            will remove all occurrences of 'for' in the current file.
  1151.  
  1152.            Brace  matching     NED  provides     a    function   that   is
  1153.            particularly  useful   for  checking   complex  bracketed
  1154.            expressions in  programs. The  brace matching function F5
  1155.            attempts to    match opening  and closing    brace {}, square
  1156.            bracket    [],   angle  bracket   <>  or    parentheses   ()
  1157.            characters.
  1158.  
  1159.            First you  must move the cursor to the character you wish
  1160.            to match  and then  press F5.  If  the  character  is  an
  1161.            'opener' NED  will search  down the    file for  a  closing
  1162.            character, otherwise  NED  will    search    upwards  for  an
  1163.            opening character.  If no match is found NED will display
  1164.            the message:
  1165.  
  1166.                 Match Not Found !
  1167.  
  1168.            This means  that your expression is not correctly closed.
  1169.            If this is a program expression you will more than likely
  1170.            generate a  compile/run-time error.    If a match is found,
  1171.            NED will move the cursor to the matching character.
  1172.  
  1173.            3.8 Quitting NED
  1174.            There are two ways to quit NED. If you have only one open
  1175.            file and  wish to  save changes    made in  it, use the END
  1176.            command, otherwise  you should  use the QUIT command. The
  1177.            END command will save the file and close the area. If the
  1178.            current area  is the only area open, you will be returned
  1179.            to DOS,    or else  NED will  move you move to the previous
  1180.            open area.
  1181.  
  1182.            The QUIT command goes through all the open areas checking
  1183.            to see  if any  changes have been recorded in them. If no
  1184.            changes have  been made to an area, NED will simply close
  1185.            it and  proceed to  the next  area. If  a change has been
  1186.            recorded, the message:
  1187.  
  1188.                 (S)ave (A)bort or (C)ancel ?
  1189.  
  1190.            is displayed. You can press 's' to save, 'a' to abort the
  1191.            file, or  'c' to  cancel the command. If you want to save
  1192.            all changed    areas without  being prompted, issue the 's'
  1193.            
  1194.            NED v1.7a User's Guide                            Page  24
  1195.  
  1196.            parameter. For example:
  1197.  
  1198.                 <Esc>Qs<Enter>
  1199.  
  1200.            Alternatively if  you do  not want  to save    any  changed
  1201.            areas and  you don't  wish to  be prompted, issue the 'a'
  1202.            parameter. For example:
  1203.  
  1204.                 <Esc>Qa<Enter>
  1205.  
  1206.            3.9 The Backup System
  1207.            When you  save a  file other  than a  new file, NED first
  1208.            renames the    existing file  on the  disk by    inserting an
  1209.            underscore (_)  in front  of the extension and moving the
  1210.            other characters to the right. For example:
  1211.  
  1212.                 MYPROG.PRG
  1213.  
  1214.            becomes:
  1215.  
  1216.                 MYPROG._PR
  1217.  
  1218.            and the    third character  (if any)  of the  extension  is
  1219.            lost. The  new file is then    written to the old filename.
  1220.            If the file has no extension NED uses .BAK for the backup
  1221.            name.
  1222.  
  1223.            A useful  feature of  this system is if you edit a backup
  1224.            file, a    second backup  will be    created with two leading
  1225.            underscore characters,  and    so    on.  The  backup  system
  1226.            allows you  to distinguish backups with the same filename
  1227.            but different  extensions, thus    keeping separate backups
  1228.            for these  files. For  example, if you edit the following
  1229.            files:
  1230.  
  1231.                 NED.C
  1232.                 NED.H
  1233.  
  1234.            the backups become:
  1235.  
  1236.                 NED._C
  1237.                 NED._H
  1238.  
  1239.            Because backup files may clutter your work directory, NED
  1240.            allows you  to specify  an alternative drive/directory in
  1241.            which to  place backup files with the BACKUP command. For
  1242.            example:
  1243.  
  1244.                 <Esc>Bc:\bak<Enter>
  1245.  
  1246.            will set the backup directory to c:\bak. If this does not
  1247.            exist you  will be  prompted to create it. You may select
  1248.            an existing    backup drive/directory for your backup files
  1249.            with the  File Display  mode by    pressing F1  instead  of
  1250.            entering a drive/directory, for example:
  1251.  
  1252.                 <Esc>B<F1>
  1253.  
  1254.            
  1255.            NED v1.7a User's Guide                            Page  25
  1256.  
  1257.            Use your  movement keys    to high-light  a drive/directory
  1258.            and then  press CTRL ENTER to select it. See sections 4.3
  1259.            and 5.5    for details  on File Display and section 5.1 for
  1260.            details on  the BACKUP  command. You may can specify your
  1261.            backup  directory  in  the  start-up  configuration    file
  1262.            CONFIG.NED. When ever you start NED, the backup directory
  1263.            will be    set. See the BACKUP statement in section 5.3 for
  1264.            details.
  1265.  
  1266.  
  1267.  
  1268.            
  1269.            NED v1.7a User's Guide                            Page  26
  1270.  
  1271.            *********************************************************
  1272.            NED v1.7a User's Guide
  1273.            Chapter 4   Advanced Features
  1274.  
  1275.            4.1    Configuring NED
  1276.            NED can be configured to suit your particular machine and
  1277.            editing needs. This is done with a short text file called
  1278.            CONFIG.NED which  is scanned  each time NED is loaded. If
  1279.            this file  is not found in the current directory NED will
  1280.            look along the PATH. If it still cannot be found NED will
  1281.            load with  its default  settings. CONFIG.NED  consists of
  1282.            single line statements in the form:
  1283.  
  1284.                 OPTION=setting
  1285.  
  1286.            where setting  is either  a switch  (e.g. ON or OFF) or a
  1287.            string such    as pathname.  See section  5.3 Configuration
  1288.            Reference for  a list  and syntax  of the valid commands.
  1289.  
  1290.            You may    save the  current settings of NED whilst editing
  1291.            with CTRL  F4 which    writes a  new CONFIG.NED file in the
  1292.            current directory.
  1293.  
  1294.            The following  description outlines    the way  to  set  up
  1295.            NED's environment. Firstly at the DOS prompt type:
  1296.  
  1297.                 ned config.ned<Enter>
  1298.  
  1299.            if the message:
  1300.  
  1301.                 Ok to Create ? (Y/N)
  1302.  
  1303.            appears type 'Y' to create it. Now press CTRL F4 to write
  1304.            the default    settings to CONFIG.NED. NED will display the
  1305.            message:
  1306.  
  1307.                 CONFIG.NED written to disk
  1308.  
  1309.            Now issue the QUIT command by typing:
  1310.  
  1311.                 <Esc>Q<Enter>
  1312.  
  1313.            This will  return you  to DOS.  The file  you  have    just
  1314.            created contains  the default CONFIG.NED settings. Now at
  1315.            the DOS prompt type:
  1316.  
  1317.                 ned<Enter>
  1318.  
  1319.            You don't  need to  specify a  filename. This  is because
  1320.            when you  use CTRL  F4  to  write  CONFIG.NED,  the    FILE
  1321.            statement is  set to  the current  filename which in this
  1322.            case was CONFIG.NED. See the description below. The first
  1323.            line is    a comment  line.  You  may    add  comments  on  a
  1324.            separate line using the following characters as the first
  1325.            character of the line:
  1326.  
  1327.                 \ ' " *
  1328.            
  1329.            NED v1.7a User's Guide                            Page  27
  1330.  
  1331.  
  1332.            The next line is the AUTOINDENT statement. This tells NED
  1333.            whether to  indent the  cursor under the text of the line
  1334.            before when    you press  ENTER. This saves you from having
  1335.            to move    the cursor    over if the text you are entering is
  1336.            indented from  the left    margin. If you wish this feature
  1337.            to be  set off leave it as it is. Otherwise, change it to
  1338.            'ON'. The line should then read:
  1339.  
  1340.                 AUTOINDENT=ON
  1341.  
  1342.            The next  statement that usually appears in CONFIG.NED is
  1343.            the BACKUP  statement, but  since we are working from the
  1344.            default settings, NED has not included it. This statement
  1345.            tells NED  to place backups in a directory other than the
  1346.            current one.  If you  wish to use this feature then enter
  1347.            the following:
  1348.  
  1349.                 <Enter>BACKUP=\BAK
  1350.  
  1351.            This directs  NED to open a new blank line and insert the
  1352.            text 'BACKUP=\BAK'. If the directory \BAK does not exist,
  1353.            NED will prompt you to create it next time NED is loaded.
  1354.  
  1355.            The next  line contains the COLOUR statement. If you have
  1356.            a monochrome  adapter (e.g.    MDA,  HERCULES)  you  should
  1357.            delete  the    COLOUR    statement.    To    do    this  press  the
  1358.            following keys:
  1359.  
  1360.                 <Down><Shift F2>
  1361.  
  1362.            This will  delete the line, and the lines below will move
  1363.            up to  close the  gap. If you have a colour monitor (e.g.
  1364.            CGA, EGA or VGA) change the COLOUR statement to:
  1365.  
  1366.                 COLOUR=7,1,1,3
  1367.  
  1368.            this tells  NED to  use white  on blue  characters in the
  1369.            Edit window    and blue  on cyan  characters in  the System
  1370.            window.
  1371.  
  1372.            The next  line is  the DATEFMT statement. This configures
  1373.            the date format used in NED. The default format is:
  1374.  
  1375.                 DATEFMT=DMY/
  1376.  
  1377.            Which displays the date as dd/mm/yyyy. If you wish to use
  1378.            the American date format, change the statement to read as
  1379.            follows:
  1380.  
  1381.                 DATEFMT=MDY-
  1382.  
  1383.            Which displays the date as mm-dd-yyyy.
  1384.  
  1385.            The next  two statements  instruct NED  to  automatically
  1386.            detab a file when it is loaded or entab a file when it is
  1387.            written.  For  the  purposes  of  our  setup  skip  these
  1388.            statements by  pressing the    down arrow    twice. The    next
  1389.            
  1390.            NED v1.7a User's Guide                            Page  28
  1391.  
  1392.            statement will read:
  1393.  
  1394.                 FILE=CONFIG.NED
  1395.  
  1396.            The FILE  statement tells  NED to  load up  the specified
  1397.            filename if    NED is    not given  a filename to open on the
  1398.            DOS command line.
  1399.  
  1400.            This statement  told NED  to load  CONFIG.NED the  second
  1401.            time you  started up.  We can leave this statement as is.
  1402.  
  1403.            The FIRSTCOL  statement allows you to specify whether you
  1404.            wish the  first column  of the Edit window to be referred
  1405.            to as  '0' or '1'. If you are creating screen layouts you
  1406.            may prefer to change it to:
  1407.  
  1408.                 FIRSTCOL=0
  1409.  
  1410.            The GOTO  statement allows  you to  specify the    starting
  1411.            line and  column of    the cursor    in the    first  that  NED
  1412.            loads. This defaults to:
  1413.  
  1414.                 GOTO=1,1
  1415.  
  1416.            When you  save CONFIG.NED  with CTRL  F4, NED will record
  1417.            your  current  position    in    the  current  file    to    this
  1418.            statement.
  1419.  
  1420.            The HARDTAB    statement instructs  NED to  insert the  tab
  1421.            character instead of moving the cursor a tabstop when you
  1422.            press the TAB key. The statement will be:
  1423.  
  1424.                 HARDTAB=OFF
  1425.  
  1426.            If you want to know more about this feature, see SECTIONS
  1427.            5.3, and 5.2 for a description of the TAB key.
  1428.  
  1429.            The INTENSITY statement sets the bold colours in the edit
  1430.            and System  windows. If    you have  a  monochrome  adapter
  1431.            (e.g.  MDA,    HERCULES)  you    will  have    to    delete    this
  1432.            statement by  placing the  cursor on  the  statement  and
  1433.            pressing SHIFT  F2. If  you have  a colour monitor change
  1434.            the INTENSITY statement to the following:
  1435.  
  1436.                 INTENSITY=12,15
  1437.  
  1438.            this tells  NED to  use Bright  red intensity in the Edit
  1439.            window and  Bright white  intensity in the System window.
  1440.            Finding the    right colour  and bold    attributes for    your
  1441.            needs may  be a    case of  trial and    error, so  try a few
  1442.            combinations and  select  the  one  that  you  like.  See
  1443.            section 4.9    for more details on configuring colours. The
  1444.            next statement instructs NED to start up in either insert
  1445.            or overtype    mode. If  you prefer  to work in insert mode
  1446.            (we recommend  this), change the INSERT statement to read
  1447.            as follows:
  1448.  
  1449.                 INSERT=ON
  1450.            
  1451.            NED v1.7a User's Guide                            Page  29
  1452.  
  1453.  
  1454.            The INTERWORD  statement  allows  you  to  specify  which
  1455.            characters are used to separate words. This defaults to a
  1456.            space. Change the statement to read as follows:
  1457.  
  1458.                 INTERWORD=; ,
  1459.  
  1460.            The LAYOUT statement  will read as follows:
  1461.  
  1462.                 LAYOUT=66,3,3,0
  1463.  
  1464.            This sets  the default print page layout to a page length
  1465.            of 66  lines, top  and bottom  margins of  3 lines and no
  1466.            left  margin.   If  you     have  different   page   layout
  1467.            requirements, see  sections 4.5 and 5.1 for more details.
  1468.  
  1469.            The MAXLINES  statement sets  the number of lines you can
  1470.            edit in    a file.  This defaults    to 5120 lines. Most text
  1471.            files are  less than  1200 lines so change this statement
  1472.            to read:
  1473.  
  1474.                 MAXLINES=1200
  1475.  
  1476.            The MODE  statement allows you to specify the screen type
  1477.            you wish  to use  with NED. If you are using a Monochrome
  1478.            Display Adaptor (MDA) or a Hercules adaptor then the mode
  1479.            statement should be changed to:
  1480.  
  1481.                 MODE=MDA
  1482.  
  1483.            or:
  1484.  
  1485.                 MODE=HERCULES
  1486.  
  1487.            If you have an EGA or VGA adaptor then the MODE statement
  1488.            will be    set to    'EGA'. If you wish to use NED in 43 line
  1489.            mode then change the statement to:
  1490.  
  1491.                 MODE=EGA43
  1492.  
  1493.            If you  have a  VGA and    you wish to use the 50 line mode
  1494.            then change the statement to:
  1495.  
  1496.                 MODE=VGA50
  1497.  
  1498.            The RULER  statement tells  NED whether the ruler display
  1499.            defaults to    on or  off. If you wish the ruler to be off,
  1500.            change the statement to read as follows:
  1501.  
  1502.                 RULER=OFF
  1503.  
  1504.            The SNOW  statement is for Colour Graphics Adapters only.
  1505.            If you have a CGA change this statement to read:
  1506.  
  1507.                 SNOW=OFF
  1508.  
  1509.            The SORT  statement allows  you to  specify how directory
  1510.            entries    in    the  File  Display    mode  are  sorted.    This
  1511.            
  1512.            NED v1.7a User's Guide                            Page  30
  1513.  
  1514.            defaults to    DIRECTORY order.  You can  also choose    from
  1515.            EXTENSION, SIZE,  DATE or FILE (alphabetically). You will
  1516.            probably find the EXTENSION sort the most useful since it
  1517.            will group  similar file  types. Change    the statement to
  1518.            read:
  1519.  
  1520.                 SORT=EXTENSION
  1521.  
  1522.            The SPOOL statement allows you to set background printing
  1523.            on or  off and  optionally adjust  the amount of CPU time
  1524.            (timeslice)    given    to    the   printer.    The  larger  the
  1525.            timeslice, the  less time the printer gets. It is best to
  1526.            test the  default timeslice    before adjusting  it. If you
  1527.            wish to    use the  spooler by default change the statement
  1528.            to read:
  1529.  
  1530.                 SPOOL=1,128
  1531.  
  1532.            See section 4.6 for more details on tuning the print
  1533.            spooler.
  1534.  
  1535.            The    STRIP    statement  tells   NED    to     strip    trailing
  1536.            whitespace characters  from each line when writing a file
  1537.            to disk. This statement should read:
  1538.  
  1539.                 STRIP=ON
  1540.  
  1541.            The TABSET  statement sets  the tabstops for the TAB key.
  1542.            This defaults  to a tabstop every four spaces. Unless you
  1543.            wish to    use different  tab settings leave this as it is.
  1544.            The WORDWRAP  statement instructs  NED to  start up    with
  1545.            word wrap on or off. You may optionally specify the right
  1546.            hand margin for word wrap. This statement should read:
  1547.  
  1548.                 WORDWRAP=0,65
  1549.  
  1550.            If you  wish word  wrap to  be on  by default, change the
  1551.            statement to read:
  1552.  
  1553.                 WORDWRAP=1,65
  1554.  
  1555.            You may    optionally specify a different right hand margin
  1556.            if don't wish to use the default margin. Now to save your
  1557.            new configuration, press:
  1558.  
  1559.                 <Esc>E<Enter>
  1560.  
  1561.            The END    command writes    the file and returns you to DOS.
  1562.  
  1563.            The next  time  you    load,  NED    will  reflect  your  new
  1564.            configuration.
  1565.  
  1566.            4.2 Using File Lists
  1567.            A File  List is a list of filenames or pathnames that can
  1568.            be used    by the OPEN command. File Lists are a useful way
  1569.            of specifying  large numbers  of files  for editing.  NED
  1570.            creates this list from the file specifications on the DOS
  1571.            command line. There are three types of specifications and
  1572.            
  1573.            NED v1.7a User's Guide                            Page  31
  1574.  
  1575.            any or all of them may be given on the DOS command line.
  1576.  
  1577.            These are:
  1578.  
  1579.                Single filename (e.g. MYFILE.PRG)
  1580.                Wildcard specification (e.g. *.PRG or ??FILE.C)
  1581.                'At' filename (e.g. @FILES)
  1582.  
  1583.            For example:
  1584.  
  1585.                 ned myfile.prg *.prg @files<Enter>
  1586.  
  1587.            will add  MYFILE.PRG, all  matching *.PRG  files and  all
  1588.            filenames that  are contained in the file FILES.NED (.NED
  1589.            is the  default extension  for 'At' files) to the current
  1590.            File List.  NED will  then attempt to open the first file
  1591.            in the  list, which    in this  example is  MYFILE.PRG.  To
  1592.            browse the  list, type  ESC O and then use the up or down
  1593.            arrows. You    may then  ENTER on the file you wish to open
  1594.            or just    escape again  with no  effect. Alternatively you
  1595.            may open  the next file in the list with CTRL F1. You can
  1596.            change the File List in File Display mode as described in
  1597.            the next section
  1598.            If the  File List  has been changed, when you exit NED it
  1599.            will be written to a file called FILES.NED. Next time you
  1600.            wish to    use those files you can specify the File List on
  1601.            the command line with the '@' character:
  1602.  
  1603.                 ned @files<Enter>
  1604.  
  1605.            You can save the File List to another name with the XSAVE
  1606.            command, see section 5.1 for details. For example:
  1607.  
  1608.                 <Esc>Xmyfiles<Enter>
  1609.  
  1610.            will save  the current File List to the file MYFILES.NED.
  1611.            Now, next  time you    wish to  use that  File List  simply
  1612.            type:
  1613.  
  1614.                 ned @myfiles<Enter>
  1615.  
  1616.            If you  change the File List using the File Display mode,
  1617.            NED will  update MYFILES.NED  because you  specified  the
  1618.            'At' file on the command line.
  1619.  
  1620.            4.3 File Display Mode
  1621.            The File  Display mode  is a  useful  directory    browsing
  1622.            system that    allows you    to locate files to open. You can
  1623.            also use  it to    browse, edit  or add   files to the File
  1624.            List.
  1625.  
  1626.            The File  Display mode is primarily designed for use with
  1627.            the OPEN  command but  may also    be used with END, WRITE,
  1628.            USE and    BACKUP commands. To enter File Display mode type
  1629.            the following:
  1630.  
  1631.                 <Esc>O<F1>
  1632.  
  1633.            
  1634.            NED v1.7a User's Guide                            Page  32
  1635.  
  1636.            Using this  method will    take you  to the directory area.
  1637.            You can    specify a  wildcard file  specification  on  the
  1638.            command line  before you  press F1. NED will only display
  1639.            files that match the wildcard, for example:
  1640.  
  1641.                 <Esc>O*.bat<F1>
  1642.  
  1643.            This command  instructs the    File Display mode to display
  1644.            only matching  '*.bat' files. You may then select one you
  1645.            wish to    open or  press ESC    to return to your file. When
  1646.            you enter  File Display mode, you will notice to the left
  1647.            of the  screen a 'pad' which will display the contents of
  1648.            the File  List (if  any). To  the right    will be  all the
  1649.            files and  subdirectories of  the current  directory (the
  1650.            directory area).  Files are in lower case, subdirectories
  1651.            and drives  are bold and in upper case. The top line will
  1652.            display the full pathname of the current directory to the
  1653.            left the number, total size of the files in the directory
  1654.            and the directory sort type to the right.
  1655.  
  1656.            Over the first entry will appear a reverse video selector
  1657.            bar. You  may move  this with  most of  the normal cursor
  1658.            movement keys.  As you high-light a file, the bottom line
  1659.            will display  its size  in bytes and the date/time it was
  1660.            last updated.  You may  re-sort the directory by pressing
  1661.            ALT:
  1662.  
  1663.                Key    Sort
  1664.  
  1665.                D    Directory order
  1666.                F    Alphabetically
  1667.                S    File size
  1668.                T    Time/date
  1669.                X    File extension
  1670.  
  1671.            The sort type may also be set in CONFIG.NED, see the SORT
  1672.            statement in  section 5.3 for details. If you press ENTER
  1673.            over a  drive or  subdirectory, NED    will change  to  the
  1674.            drive or directory and display its contents. If you press
  1675.            ENTER over a file, NED will attempt to open it, returning
  1676.            you to the command area.
  1677.  
  1678.            The filename  you returned  on  is  copied  to  the    last
  1679.            parameter string  F3 so    you may  use  it  in  your    next
  1680.            command. If    you press  ESC you    will be  returned to the
  1681.            command area with no change.
  1682.  
  1683.            If you  press INS  over a file, its name is copied to the
  1684.            end of the File List. If you press INS over the '.' entry
  1685.            the entire  directory is  copied to the File List. If the
  1686.            '.' entry is not present, use the '\'.
  1687.  
  1688.            You can move between the directory area and the File List
  1689.            window with    the TAB  key or  you can enter the File List
  1690.            directly from  the Edit    window by  pressing SHIFT F1. In
  1691.            the File  List window, you may browse the files with most
  1692.            of the  cursor movement    keys. To open a file press ENTER
  1693.            over a  filename. If  you press DEL over a file, the file
  1694.            
  1695.            NED v1.7a User's Guide                            Page  33
  1696.  
  1697.            is removed  from the list. If you press CTRL K the entire
  1698.            list is    deleted and  you are moved over to the directory
  1699.            area.
  1700.  
  1701.            You may    have up  to 512  entries in  the File List. When
  1702.            there are  more than 18 entries in the list, a scroll bar
  1703.            will appear    to the    right of  the list    indicating    your
  1704.            position in the list.
  1705.  
  1706.            When in    the File  List    window,  the  bottom  line    will
  1707.            display the    number of the current entry out of the total
  1708.            number of  entries and  the drive/directory    in which the
  1709.            file resides.
  1710.  
  1711.            If you  press ESC  you will    be returned  to the  command
  1712.            area. Any changes made to the File List will be retained.
  1713.  
  1714.            You can    save the  File List when in the File List window
  1715.            by pressing    CTRL F4.  This will write the list to a file
  1716.            called FILES.NED in the current directory. If you want to
  1717.            save the  File List    to your  own filename, use the XSAVE
  1718.            command.
  1719.  
  1720.            4.4 Creating and Using Macros
  1721.            Macros allow  you to  record a  series of  keystrokes and
  1722.            assign them    to a  function key.  This  can    save  you  a
  1723.            considerable amount of time if you find you are repeating
  1724.            the same  keystrokes continually.  Macros that you create
  1725.            may be saved away to a file and restored at will. You can
  1726.            have up    to twenty  predefined macros  at any  one  time.
  1727.  
  1728.            These keys  are mapped between ALT F1 to ALT F20 (ALT F11
  1729.            20 = SHIFT ALT F1-10). There is of course no limit to the
  1730.            number of macro files you can have.
  1731.  
  1732.            To begin  recording a macro press F7. NED will prompt you
  1733.            to enter  a macro  key to  assign the  keystrokes to  and
  1734.            enter a    key between  ALT F1-20. You may record up to 128
  1735.            keystrokes per  macro. As  you  record  your  macro,  the
  1736.            current keystroke  number is  displayed    in    the  message
  1737.            area. To finish recording press F7 again.
  1738.  
  1739.            The MACRO  command is  an alternative starting point that
  1740.            allows you  to name    the macro  as well as record it. For
  1741.            example you would type:
  1742.  
  1743.                 <Esc>MFile opener<Enter><Alt F1><Ctrl F1>
  1744.                 <Ctrl F1><Ctrl F1><F7>
  1745.  
  1746.            to record a macro called 'File opener' to ALT F1. You may
  1747.            also use  this command  to name    or    rename    an    existing
  1748.            macro. To  rename the above macro append the 'r' option.
  1749.            For example:
  1750.  
  1751.                 <Esc>MOpen next 3 files,r<Enter>
  1752.  
  1753.            will rename ALT F1 to 'Open next 3 files'.
  1754.  
  1755.            
  1756.            NED v1.7a User's Guide                            Page  34
  1757.  
  1758.            To save a macro set to disk use the KEEP command. Restore
  1759.            a macro    set with  the USE  command. See  section 5.1 for
  1760.            details on  these commands.    To view all the macro names,
  1761.            keys and  number of    keystrokes    press  SHIFT  F7  (Macro
  1762.            Report).
  1763.  
  1764.            Since you  can record  keystrokes from  both the edit and
  1765.            command windows,  macros will  be sensitive to the window
  1766.            you start  the macro from. SHIFT ESC forces the cursor to
  1767.            move from  the command  area to    the Edit  window if  the
  1768.            current area is open. Consider the following example:
  1769.  
  1770.                 <Esc>O<Enter><Enter><Enter><Esc>
  1771.  
  1772.            If this    macro is  started from the Edit window, the next
  1773.            two files  in the  File List  will be opened. If however,
  1774.            the macro  is started  from the    command area, an 'o' and
  1775.            four blank  lines will  suddenly appear    in your file. If
  1776.            the macro is recorded as follows:
  1777.  
  1778.                 <Shift Esc><Esc>O<Enter><Enter><Enter><Esc>
  1779.  
  1780.            the macro  will work correctly from either window because
  1781.            SHIFT ESC only works in one direction. If the above macro
  1782.            was run    from Command  mode in  an unopened    area it will
  1783.            also work  correctly since  the    cursor    will  remain  in
  1784.            Command mode.
  1785.  
  1786.            An example  macro file is supplied with the system called
  1787.            SAMPLE.MCR. Load  this file    up using the USE command and
  1788.            press SHIFT F7 to see what these macros do.
  1789.  
  1790.            4.5 Printing a File
  1791.            NED provides  the facility  to print a part or all of the
  1792.            current file.  NED will    always print via the PRN device.
  1793.            To print a file    use the PRINT command as follows:
  1794.  
  1795.                 <Esc>P<Enter>
  1796.  
  1797.            For details    on printing  part of  a file.  See the PRINT
  1798.            command in section 5.1.
  1799.  
  1800.            NED allows  you to  embed printer  commands in your file.
  1801.            These must  always be  preceded by  a period '.' and must
  1802.            start at  the left  of a blank line. No other text except
  1803.            printer commands  may appear  on the  line. If  text does
  1804.            appear it  will be  ignored.  NED  distinguishes  printer
  1805.            command lines  from normal  lines and  knows not to print
  1806.            them. The  commands correspond  to the  Epson FX  printer
  1807.            command set. For example:
  1808.  
  1809.                .bf
  1810.                Hello
  1811.                .bo
  1812.  
  1813.            tells the  printer to  print what follows in bold so that
  1814.            'Hello' is  printed in  bold. The  next command turns the
  1815.            bold printing off.
  1816.            
  1817.            NED v1.7a User's Guide                            Page  35
  1818.  
  1819.  
  1820.            If these  commands are  not sufficient  or  your  printer
  1821.            implements them    differently, you can send special escape
  1822.            sequences with the .e command. E.g.:
  1823.  
  1824.                .eg
  1825.  
  1826.            sends the escape sequence to turn on bold printing to the
  1827.            printer. See  section 5.7 for details on all the embedded
  1828.            printer commands.
  1829.  
  1830.            NED defaults  to printing  60 lines per page (print pages
  1831.            are 66  lines) leaving  3 lines at the top and the bottom
  1832.            and then  issues a  form feed  when it  has finished.  To
  1833.            allow for  different sized  forms and  for the  situation
  1834.            where you  don't want top and bottom margins or where you
  1835.            want a  left margin,  NED has  the YLAYOUT  command. This
  1836.            command allows  you to  specify    the  form  length,    top,
  1837.            bottom and left margins, for example:
  1838.  
  1839.                 <Esc>Y66,0,0,10<Enter>
  1840.  
  1841.            will set the print page to 66 lines with no top or bottom
  1842.            margins and    a left margin of ten characters. This allows
  1843.            you to print a file with no perforation skips on standard
  1844.            continuous paper  and have  a one inch left margin so you
  1845.            can bind the printout. If you have A4 paper, the command:
  1846.  
  1847.                 <Esc>Y70,6,3<Enter>
  1848.  
  1849.            will set  the form  length to 70 lines, with a 6 line top
  1850.            margin, a  3 line  bottom margin  and no left margin. See
  1851.            section 5.1    for further  details on the YLAYOUT command.
  1852.  
  1853.            NED also  allows you  to set  your default page layout in
  1854.            CONFIG.NED with the LAYOUT statement, see section 5.3 for
  1855.            details.
  1856.  
  1857.            4.6 Using the Print Spooler
  1858.            When a  file is    printed it    may be    sent directly to the
  1859.            printer or  sent via the spooler. When printing directly,
  1860.            you must  wait until  the  printer  has    finished  before
  1861.            continuing editing.    When printing  via the    spooler, you
  1862.            can continue  editing your files in foreground mode while
  1863.            NED prints the file in background. The spooler can handle
  1864.            up to ten  files  in its  queue. Each time a file is sent
  1865.            to the  spooler it  is added  to the end of the queue. As
  1866.            the printing  of a file is completed, all remaining files
  1867.            are    moved  up  one    place  in  the    queue.    The  spooler
  1868.            continues printing  until no  more files  remain  in  the
  1869.            queue.
  1870.  
  1871.            To print in background mode the spooler must first be set
  1872.            on. Use    CTRL F6  to toggle    the spooler on or off or use
  1873.            the SPOOL  statement in    CONFIG.NED to  default it  on or
  1874.            off.See section 5.3 for details.
  1875.  
  1876.            Once the spooler is active, use the PRINT command to send
  1877.            
  1878.            NED v1.7a User's Guide                            Page  36
  1879.  
  1880.            files to  the spooler.  This only  takes a moment and you
  1881.            are then  returned to  editing your    file(s). The  VSPOOL
  1882.            command allows  you to  control the    spooler while  it is
  1883.            active. You    can pause  or resume  background printing or
  1884.            remove one  or all  files  from    the  spooler.  To  pause
  1885.            background printing    when the  spooler is active, use the
  1886.            following command:
  1887.  
  1888.                 <Esc>Vp<Enter>
  1889.  
  1890.            Repeat the  above command  to resume  printing. To remove
  1891.            all files  from the    spooler queue  including the  active
  1892.            spool file use the 'k' parameter. For example:
  1893.  
  1894.                 <Esc>Vk<Enter>
  1895.  
  1896.            You may    selectively remove a file from the spooler queue
  1897.            by specifying  its position    in the    queue. You can enter
  1898.            the queue  number for  the file    you wish  to remove  for
  1899.            example:
  1900.  
  1901.                 <Esc>V2<Enter>
  1902.  
  1903.            You may also browse through the queue with the up or down
  1904.            arrows. This  will display  the number  and name  of each
  1905.            file in    the queue.    You may then press ENTER on the file
  1906.            you wish  to remove.  See section 5.1 for more details on
  1907.            the VSPOOL command.
  1908.  
  1909.            4.7 Using the Calculator
  1910.            The Calculator  emulates most  of the  functions  of  the
  1911.            average hand  held model.  It uses  the standard  'infix'
  1912.            method of  operand/operator/operand    (e.g  2  +    3).  The
  1913.            Calculator is  invoked with the SHIFT F6 key. The program
  1914.            NCAL.EXE must  be either  in  the  current  directory  or
  1915.            reside on the PATH.
  1916.  
  1917.            The Calculator  has provision for hexadecimal and decimal
  1918.            numbers. Use  the space    bar to    toggle between these two
  1919.            modes.  When  you  toggle  between  modes  the  currently
  1920.            displayed  number  will    be    converted  accordingly.  NED
  1921.            automatically selects the NUM-LOCK on your numeric keypad
  1922.            allowing you  to use  it for  number entry.    To enter the
  1923.            hexadecimal A to F use CTRL A to F.
  1924.  
  1925.            If you miskey a number you can backspace (BS) over it and
  1926.            re-type it or press 'e' to re-enter the whole number. Use
  1927.            'c' to  clear all  (CE) operands  and operators.  If  the
  1928.            number calculated  is  too  large  to  be  displayed  the
  1929.            calculator will show the message:
  1930.  
  1931.                 Overflow
  1932.  
  1933.            When you  have finished press ESC to return to your file.
  1934.  
  1935.            You can use the calculator from DOS by typing:
  1936.  
  1937.                 NCAL<Enter>c
  1938.            
  1939.            NED v1.7a User's Guide                            Page  37
  1940.  
  1941.  
  1942.            Note that the 'c' must be pressed after ENTER.
  1943.  
  1944.            4.8    Using the ASCII Tables
  1945.            These tables  provide the full set of ASCII characters in
  1946.            decimal,  hexadecimal   and    the   ASCII  character.  For
  1947.            example:
  1948.  
  1949.                 DEC  HEX  CHR
  1950.                 42     2A   *
  1951.  
  1952.            The ASCII tables are invoked with the F6 key. The program
  1953.            NCAL.EXE must  be either  in  the  current  directory  or
  1954.            reside on  the PATH.  You can  view other  pages with the
  1955.            arrow keys  HOME takes  you to  the first page END to the
  1956.            last page.  Press ESC  to return to your file. The F1 key
  1957.            toggles between character names and the literal character
  1958.            on the  first page  of the  tables. For    example, ASCII 3
  1959.            will appear    as the    clear smiley  face character  or  as
  1960.            'SOH'. You can use the ASCII tables from DOS by typing:
  1961.  
  1962.                 NCAL<Enter>a
  1963.  
  1964.            Note that the 'a' must be pressed after ENTER.
  1965.  
  1966.            4.9    Using Colours
  1967.            If you have a CGA, EGA, VGA or compatible adapter you can
  1968.            configure NED  to make full use of colour. You may preset
  1969.            the colours    you wish  to use  with two statements in the
  1970.            start up  file  CONFIG.NED.    These  are    the  COLOUR  and
  1971.            INTENSITY  statements.    NED  allows   different   colour
  1972.            settings for the edit and System windows.
  1973.  
  1974.            The COLOUR  statement accepts  four numbers between 0 and
  1975.            7. The  first  two  are    the  foreground  and  background
  1976.            attributes for  the Edit window. The last two specify the
  1977.            foreground and  background colours for the System window.
  1978.  
  1979.            The INTENSITY statement accepts two numbers between 0 and
  1980.            15 although    to work properly should be between 8 and 15.
  1981.            The first sets the bold attribute for the Edit window and
  1982.            the second sets the bold attribute for the System window.
  1983.            The numbers correspond to the colours as follows:
  1984.  
  1985.                No.    Colour      No.  Colour
  1986.                0    Black      8    Dark grey
  1987.                1    Blue      9    Light blue
  1988.                2    Green      10   Light green
  1989.                3    Cyan      11   Light cyan
  1990.                4    Red       12   Light red
  1991.                5    Magenta   13   Light magenta
  1992.                6    Brown      14   Yellow
  1993.                7    White      15   Bright white
  1994.  
  1995.            For example:
  1996.  
  1997.                 COLOUR=7,1,0,1
  1998.                 INTENSITY=12,14
  1999.            
  2000.            NED v1.7a User's Guide                            Page  38
  2001.  
  2002.  
  2003.            sets white  on blue    characters with red intensity in the
  2004.            Edit window    and black  on white characters with a yellow
  2005.            intensity in the System window
  2006.  
  2007.                 COLOUR=7,4,1,3
  2008.                 INTENSITY=14,15
  2009.  
  2010.            sets white on red characters with yellow intensity in the
  2011.            Edit window    and white  on cyan    characters with a bright
  2012.            white in the System window.
  2013.  
  2014.            NED uses  the intensity attribute in the Edit window with
  2015.            the cursor.    When the  cursor is within a line it will be
  2016.            the same colour as a character it is under. If however it
  2017.            is off  the end    of the    line, the  colour changes to the
  2018.            INTENSITY setting.  In the  first example above this will
  2019.            be Bright  red. This  is a useful feature as it shows you
  2020.            where you  have entered    text. For  example if  there are
  2021.            spaces on  the end  of a  line or if there is text to the
  2022.            right of  the Edit  window, the cursor will appear in the
  2023.            normal attribute. See section 5.3 for more details on the
  2024.            COLOUR and  INTENSITY configuration    statements.
  2025.            
  2026.  
  2027.            4.10 Using 43/50 Line Modes
  2028.            If you have an EGA or VGA adapter, NED permits editing in
  2029.            43 and  50 line    modes respectively. To toggle between 25
  2030.            and 43/50  line modes  use ALT  =. See  section    5.2  for
  2031.            details on  the ALT    = function. If you want to use 43 or
  2032.            50 line    modes by  default change  the MODE    statement in
  2033.            CONFIG.NED to the following:
  2034.  
  2035.                 MODE=EGA43
  2036.  
  2037.            or:
  2038.  
  2039.                 MODE=VGA50
  2040.  
  2041.            depending on  your video  adapter. If  you specify EGA or
  2042.            
  2043.            NED v1.7a User's Guide                            Page  39
  2044.  
  2045.            VGA you    will be  able to  switch to 43 and 50 line modes
  2046.            respectively, with ALT =.
  2047.  
  2048.  
  2049.  
  2050.            
  2051.            NED v1.7a User's Guide                            Page  40
  2052.  
  2053.            *********************************************************
  2054.            NED v1.7a User's Guide
  2055.            Chapter 5 Reference Sections
  2056.  
  2057.            5.1    Command Reference
  2058.  
  2059.            Introduction
  2060.            This  section   gives  a  full  description    of    commands
  2061.            available from  Command mode. Items not surrounded by the
  2062.            square brackets    are  compulsory  parameters.  The  space
  2063.            between the    command letter and the parameter is intended
  2064.            for clarity    only. No  leading space should be typed when
  2065.            entering the  parameter.  Conversely  when  a  comma  (,)
  2066.            appears in the parameter specification it should be typed
  2067.            literally.
  2068.  
  2069.  
  2070.            AREA    Change to a new area
  2071.            Syntax: A [number]
  2072.  
  2073.            The AREA  command allows  you to specify an optional area
  2074.            number to  change to. If no area number is given the next
  2075.            area is chosen. You may browse through the areas with the
  2076.            up/down arrows.
  2077.  
  2078.            When you change to another area, the filename/pathname of
  2079.            the new    area is  copied to the last parameter string, so
  2080.            that you may restore it with F3 and edit it for your next
  2081.            command parameter.  Alternatively, you may select another
  2082.            area with  the ALT  0 to  9 keys  or the Status screen by
  2083.            pressing F10 and selecting the area you want. See section
  2084.            5.2 for further details.
  2085.  
  2086.  
  2087.            BACKUP  Specify the backup directory
  2088.            Syntax: B drive:\directory
  2089.  
  2090.            When a  file is    written to disk the original filename is
  2091.            renamed to  the ._??  extension. The  leading  underscore
  2092.            allows you to distinguish edited files that have the same
  2093.            filename but  have different  extensions.  If  no  backup
  2094.            directory is  specified, the  backup file will be written
  2095.            to the  current directory.  This however can clutter your
  2096.            work directory  making it  difficult to    find files.  The
  2097.            BACKUP command  allows  you    to    specify  an  alternative
  2098.            drive:\directory in    which to place the backup file. This
  2099.            is useful  to keep  back-ups 'out  of harms    way'. If the
  2100.            drive:\directory does not exist, NED will prompt:
  2101.  
  2102.                 Create BACKUP Directory (Y/N) ?
  2103.  
  2104.            If you  answer  'y',  NED  will    attempt  to  create  the
  2105.            directory. You  may use the File Display mode to select a
  2106.            directory by pressing F1 in parameter entry mode. When in
  2107.            File Display  mode, CTRL  ENTER    selects  the  high-  lit
  2108.            directory since    ENTER merely  moves you to the high- lit
  2109.            directory. See  section 5.5    for further  details on File
  2110.            Display mode.
  2111.            
  2112.            NED v1.7a User's Guide                            Page  41
  2113.  
  2114.  
  2115.            This command  can also  be specified  in CONFIG.NED,  see
  2116.            section 5.3 for details.
  2117.  
  2118.  
  2119.            CLOSE   Closes an area
  2120.            Syntax: C [number]
  2121.  
  2122.            This command  closes an    area. If no area number is given
  2123.            the current    area is  closed. You  may close  other areas
  2124.            from the  current area  by  specifying  its    number.  For
  2125.            example:
  2126.  
  2127.                 <Esc>C3<Enter>
  2128.  
  2129.            will attempt  to close  area number    3. If  the specified
  2130.            area is not open, NED displays the message:
  2131.  
  2132.                Area Not Open !
  2133.  
  2134.            If changes  have been  made to  the area, NED prompts you
  2135.            with:
  2136.  
  2137.                 Changes will be lost, Confirm (Y/N) ?
  2138.  
  2139.            if you  answer no  the operation  is aborted.  If yes the
  2140.            changes are    discarded and  the area is freed. All memory
  2141.            associated with    the area  is returned to the system pool
  2142.            and the    area is  available for    use again  with  another
  2143.            file.
  2144.  
  2145.  
  2146.            DETAB   Detab a file
  2147.            Syntax: D
  2148.  
  2149.            This command  replaces tab characters (chr 9) with spaces
  2150.            (chr  32)   using  the  current    tabstop  settings  as  a
  2151.            template. This  means that where a tab character is found
  2152.            in a  line, its    proximity to  next tabstop is calculated
  2153.            and the appropriate number of spaces inserted to bring it
  2154.            into alignment.
  2155.  
  2156.            Some lines  may    want  to  expand  to  greater  than  256
  2157.            characters in  which case  they are    truncated. In  large
  2158.            files the  DETAB command  will  consume    more  memory  to
  2159.            accommodate the    increased size of the file. This command
  2160.            is useful  when you    read a file from another editor that
  2161.            contains tabs.  Make sure  that you set NED's tabstops to
  2162.            match the  file's tab  settings otherwise  you will    have
  2163.            text alignment problems after expansion.
  2164.  
  2165.            NED can    be set    to automatically  detab when  a file  is
  2166.            opened with the DETAB statement in CONFIG.NED or with the
  2167.            CTRL F10  function toggle,  see sections  5.3 and 5.2 for
  2168.            details. See  the TABSET  command below    for  details  on
  2169.            setting tabstops. See the NTAB command for the reverse of
  2170.            this command.
  2171.  
  2172.            
  2173.            NED v1.7a User's Guide                            Page  42
  2174.  
  2175.  
  2176.            END       Finish editing a file
  2177.            Syntax: E [pathname]
  2178.  
  2179.            When this  command is issued, the file is firstly checked
  2180.            to see  if it  has changed. If so, it is written to disk.
  2181.            The area  is then  closed and NED will attempt to move to
  2182.            another open area.
  2183.  
  2184.            If no open area can be found, NED will return you to DOS.
  2185.            If, however    the spooler  is active, NED will display the
  2186.            message:
  2187.  
  2188.                 Background is busy
  2189.  
  2190.            and will  not exit  to DOS.    An optional  pathname may be
  2191.            specified  to   which  the  file  will  be  written    thus
  2192.            preserving the original file. If the pathname exists, NED
  2193.            will prompt:
  2194.  
  2195.                 File Exists ! Overwrite (Y/N) ?
  2196.  
  2197.            If you  answer 'y'  NED will  overwrite the file, if 'n',
  2198.            the command is aborted. You may also use the File Display
  2199.            mode to    select a  file to overwrite by pressing F1. When
  2200.            the command has completed NED will display the message:
  2201.  
  2202.                 <number> lines written
  2203.  
  2204.  
  2205.            FILL    Fill a line with a character
  2206.            Syntax: F character,number
  2207.  
  2208.            This command  takes the    character and  fills it from the
  2209.            current line  and column  of the  cursor  the  number  of
  2210.            times.  Any     valid    characters    may  be  used  including
  2211.            characters generated  using the    ALT keypad    method (e.g.
  2212.            ruling graphics).
  2213.  
  2214.            Characters will not be filled to a width greater than 256
  2215.            nor will  they be  filled at  the cursor if it is off the
  2216.            end of a line. In the latter case FILL appends at the end
  2217.            of the line.
  2218.  
  2219.            If you  gave an    invalid fill  parameter or the fill will
  2220.            not fit    in    the  current  line,  NED  will    display  the
  2221.            message:
  2222.  
  2223.                 Bad Fill Spec or Not Valid to Fill
  2224.  
  2225.            If the fill is successful, NED displays the message:
  2226.  
  2227.                 '<char>' Filled number Times
  2228.  
  2229.            For example:
  2230.  
  2231.                 <Esc>F*,70<Enter>
  2232.  
  2233.            
  2234.            NED v1.7a User's Guide                            Page  43
  2235.  
  2236.            will fill the '*' character 70 times from the cursor.
  2237.  
  2238.  
  2239.            GOTO    Goto a line
  2240.            Syntax: G line[,column]
  2241.  
  2242.            This command  moves the cursor to the specified line, and
  2243.            optional column    of the    current area. The line cannot be
  2244.            greater than  the number of lines in the current area and
  2245.            the column cannot be greater than 256. If an invalid line
  2246.            or  column  is  specified,  the    cursor    remains  in  its
  2247.            original position,  and NED    will display  the  following
  2248.            message:
  2249.  
  2250.                 Bad Line Number !
  2251.  
  2252.            This command is also available in CONFIG.NED, see section
  2253.            5.3 for details.
  2254.  
  2255.  
  2256.            HELP    Load help system
  2257.            Syntax: H [startpagenum]
  2258.  
  2259.            This command  attempts to load the help system. NHELP.EXE
  2260.            must be    either in the current directory or reside on the
  2261.            PATH.
  2262.  
  2263.            The HELP command takes an optional starting page number,
  2264.            for example:
  2265.  
  2266.                 <Esc>H5<Enter>
  2267.  
  2268.            will take  you to  the fifth  help screen. See the F1 key
  2269.            reference in section 5.2 for more details.
  2270.  
  2271.  
  2272.            INTERWORD Specify interword delimiter(s)
  2273.            Syntax: I character...
  2274.  
  2275.            NED distinguishes  a word  as any  character or    group of
  2276.            characters surrounded  by one or more characters from the
  2277.            interword delimiter    set. The  default is  a  space.  The
  2278.            interword  delimiter   set  allows  you    to    tailor    your
  2279.            definition of  a word  so you  can break  up  complicated
  2280.            expressions. NED  needs to know these characters in order
  2281.            to provide functions like next/previous word and deleting
  2282.            words. For  example many  programming languages    use  the
  2283.            comma to  separate function    parameters. In this case you
  2284.            would specify:
  2285.  
  2286.                 <Esc>I ,<Enter>
  2287.  
  2288.            Changes to  the delimiter  set made with this command can
  2289.            be saved  to CONFIG.NED    by using  the CTRL    F4 key. Note
  2290.            that to    use the space as a character it must be embedded
  2291.            before or  in the  middle of the other characters or else
  2292.            CONFIG.NED must    be written    to disk  with the strip flag
  2293.            set to  off with  the CTRL  F7 key.    See section  5.2 for
  2294.            
  2295.            NED v1.7a User's Guide                            Page  44
  2296.  
  2297.            details on CTRL F4 and CTRL F7 section 5.3 for details on
  2298.            the INTERWORD statement in CONFIG.NED.
  2299.  
  2300.  
  2301.            JEJECT  Eject page from printer
  2302.            Syntax: J [numpages]
  2303.  
  2304.            This command  ejects a  page from  the printer.    You  may
  2305.            optionally specify  a  number  of  pages  to  eject.  For
  2306.            example:
  2307.  
  2308.                 <Esc>J3<Enter>
  2309.  
  2310.            will eject  three pages    from the  printer.    Rather    than
  2311.            sending the    form feed character, NED sends the number of
  2312.            line feeds  corresponding to  the page  length set in the
  2313.            YLAYOUT command    or the    LAYOUT statement  in CONFIG.NED.
  2314.            The default page length is 66 lines.
  2315.  
  2316.  
  2317.            KEEP    Save a macro file
  2318.            Syntax: K [macrofile]
  2319.  
  2320.            The KEEP  command saves the current macro set to disk. If
  2321.            the macro  set is new you must specify a macrofile. If no
  2322.            macrofile is  given or  the filename is invalid, NED will
  2323.            display the message:
  2324.  
  2325.                 Invalid MACRO file or filename
  2326.  
  2327.            If the  macro set  has  been  previously  loaded  and  no
  2328.            macrofile is  given, NED  will update  the existing macro
  2329.            file. You may also specify a new name to save an existing
  2330.            macro set  to. The  default extension is for a macro file
  2331.            is .MCR.
  2332.  
  2333.  
  2334.            LAUNDRY Saves files that have changed
  2335.            Syntax: L [p]
  2336.  
  2337.            This command  checks all  the open  areas to  see if  any
  2338.            changes have  been made    in them.  If so,  NED saves each
  2339.            file to disk. The optional 'p' parameter may be specified
  2340.            which will prompt:
  2341.  
  2342.                 Save this file (Y/N) ?
  2343.  
  2344.            for each  file that    has changed.  After you  answer, NED
  2345.            proceeds  with  the    checking.  When  completed    you  are
  2346.            returned to    the area  you started  in. This  command  is
  2347.            useful if  you are  working on  a number  of files,    when
  2348.            saving each file individually is cumbersome.
  2349.  
  2350.  
  2351.            MACRO   Name and record a keyboard Macro
  2352.            Syntax: M [title[,r]]
  2353.  
  2354.            This command allows you to record a keyboard macro. It is
  2355.            
  2356.            NED v1.7a User's Guide                            Page  45
  2357.  
  2358.            an alternative  to the  F7 key. It allows you to name the
  2359.            macro before  you begin    recording. For example you would
  2360.            type:
  2361.  
  2362.                 <Esc>MFile opener<Enter>
  2363.  
  2364.            to begin  recording a  macro called    'File opener'. After
  2365.            you have  pressed ENTER,  NED will  prompt you to enter a
  2366.            macro key  between ALT  F1-20 (ALT  F11-20 = SHIFT ALT F1
  2367.            10) to  assign the  macro to.  If you enter a key that is
  2368.            not between ALT F1-20, NED displays the message:
  2369.  
  2370.                 Key entered Not a valid MACRO key !
  2371.  
  2372.            If a  valid macro key is pressed, the cursor is taken out
  2373.            of the command area to begin recording. Make sure you are
  2374.            in an  open area  when recording  and using a macro. When
  2375.            you have  finished recording  press the    F7 key.  You may
  2376.            also use  this command  to name    or    rename    an    existing
  2377.            macro. Repeat  the above  process except  append the  'r'
  2378.            option. For example:
  2379.  
  2380.                 <Esc>MFile opener,r<Enter>
  2381.  
  2382.            will prompt    you for  the macro    key and  then assign the
  2383.            name 'File opener' to it.
  2384.  
  2385.            You can    view the  names of    macros with the SHIFT F7 key
  2386.            (Macro Report  screen). The purpose of being able to name
  2387.            macros is  so that  you can view this screen and hence be
  2388.            able to    remember the  function of  macros you create and
  2389.            save. See  section 5.2 for details on the F7 and SHIFT F7
  2390.            keys.
  2391.  
  2392.  
  2393.            NTAB    Replace spaces with tabs
  2394.            Syntax: N
  2395.  
  2396.            This command replaces spaces (chr 32) with tab characters
  2397.            (chr 9) using the current tabstop settings as a template.
  2398.            This means  that  when  a  number  of  spaces  are  found
  2399.            corresponding to  the space    number value  of the nearest
  2400.            tabstop these  are replaced    by a tab character. The NTAB
  2401.            command will  release some  memory that    being the memory
  2402.            taken up by the spaces converted.
  2403.  
  2404.            NED can    be set    to automatically entab a file when it is
  2405.            saved with  the NTAB  statement in CONFIG.NED or with the
  2406.            CTRL F9 toggle key, see sections 5.2 and 5.3 for details.
  2407.            See the    TABSET command    below  for    details  on  setting
  2408.            tabstops and  see the DETAB command above for the reverse
  2409.            function.
  2410.  
  2411.  
  2412.            OPEN    Open a file for editing
  2413.            Syntax: O [pathname]
  2414.  
  2415.            This command  opens    a  file  for  editing  in  the    next
  2416.            
  2417.            NED v1.7a User's Guide                            Page  46
  2418.  
  2419.            available area.    If there  are no  free areas,  NED    will
  2420.            display the message:
  2421.  
  2422.                 No Free Areas left !
  2423.  
  2424.            In its  simplest form,  OPEN accepts  the pathname of the
  2425.            file to open. For example:
  2426.  
  2427.                 <Esc>Omyfile.prg<Enter>
  2428.  
  2429.            will attempt  to open  the file 'myfile.prg'. If the file
  2430.            does not exist NED will prompt you with:
  2431.  
  2432.                 Ok to Create (Y/N) ?
  2433.  
  2434.            If  you    answer    'y'  you  may  proceed    to    enter  text,
  2435.            otherwise you will be returned to command selection mode.
  2436.            If no  parameter is given, the next file in the File List
  2437.            is opened  if a    File List  exists. CTRL  F1 (quick open)
  2438.            will open  the next    file in the File List as a short-cut
  2439.            to this    operation. If  there are no further files in the
  2440.            File List, NED will display the message:
  2441.  
  2442.                 End of File List reached
  2443.  
  2444.            You may browse the File List in parameter entry mode with
  2445.            the up/down    arrows and    then ENTER on a file to open. If
  2446.            you hold  down either the up or down arrows, when the top
  2447.            or bottom  of the  File List  is reached,  NED will    wrap
  2448.            around to  the other  end of the list. You may also enter
  2449.            File Display  mode with the F1 key which takes you to the
  2450.            directory window  and ENTER on the file you wish to open.
  2451.  
  2452.            You may    specify a  wildcard parameter and then press the
  2453.            F1 key  to display  only those files in the wildcard set.
  2454.            For example:
  2455.  
  2456.                 <Esc>O*.c<F1>
  2457.  
  2458.            will enter  File Display  mode displaying  only    matching
  2459.            '*.c' files.  You can  then ENTER on the file you wish to
  2460.            open or    ESC back  to Command  mode. See  section 5.5 for
  2461.            more details  on the  File Display mode. NED will attempt
  2462.            read the  entire file  into the    area. If the file is has
  2463.            more lines  than the  maximum  lines  allowed,  NED    will
  2464.            prompt:
  2465.  
  2466.                 Buffer full, Continue ? (Y/N)
  2467.  
  2468.            If you  want to    edit this file, you should answer 'n' to
  2469.            this prompt    which will    abort the  command and return to
  2470.            the previous  open area.  You should then save your files
  2471.            if necessary,  open CONFIG.NED  and increase the MAXLINES
  2472.            statement to  accommodate the  larger file  then quit and
  2473.            re-load NED.  If you  answer 'y',  NED will    allow you to
  2474.            edit only  the first  number of buffer lines of the file.
  2475.            The extra  lines that  were not    read will be lost if you
  2476.            write the  file back  to disk. You may choose this option
  2477.            
  2478.            NED v1.7a User's Guide                            Page  47
  2479.  
  2480.            if you wish to view this file.
  2481.  
  2482.            Sufficient memory  must be  available to  read the entire
  2483.            file. If  there is  not enough  memory, NED will beep and
  2484.            display the message:
  2485.  
  2486.                 Insufficient memory !
  2487.  
  2488.            then abort  the command    and return    to the previous open
  2489.            area. If  you need to work on this file, we recommend the
  2490.            following actions:
  2491.  
  2492.            1 - close down any less important files you may have open
  2493.            to free up more memory and re-issue the OPEN command.
  2494.  
  2495.            2 -    reduce the    MAXLINES statement    in CONFIG.NED  to  a
  2496.            number that    it closer to your maximum required number of
  2497.            lines.
  2498.  
  2499.            3 -    check that you have enough free memory in DOS before
  2500.            re-loading NED.    For example,  you could have a Terminate
  2501.            Stay Resident (TSR) program consuming system memory.
  2502.  
  2503.            4 -    check to  see that    you  haven't  shelled  out    from
  2504.            another program    and loaded NED. You can normally do this
  2505.            except with large text files.
  2506.  
  2507.  
  2508.            PRINT   Sends the current file to the printer
  2509.            Syntax: P [{to|from,to}]
  2510.  
  2511.            With no    parameters this  command prints  the whole file.
  2512.            You may    optionally specify a to line number which prints
  2513.            from the  current line  to the to line, or alternatively,
  2514.            you may    specify a  from and  to line  numbers to specify
  2515.            printing between start and ending lines. For example:
  2516.  
  2517.                 <Esc>P5,25<Enter>
  2518.  
  2519.            Prints lines 5 to 25 inclusively.
  2520.  
  2521.                 <Esc>P100<Enter>
  2522.  
  2523.            Prints from the current line to line 100.
  2524.  
  2525.            If you  are printing in foreground mode, NED will attempt
  2526.            to initialize the PRN device before printing. If it fails
  2527.            you will be prompted:
  2528.  
  2529.                 Printer Not Ready, Continue ? (Y/N)
  2530.  
  2531.            Check that  the printer    is on-line    and answer    'y'. NED
  2532.            will retry.    If you    answer 'n'    you will  be returned to
  2533.            command selection.
  2534.  
  2535.            If you  are printing  in background    mode, NED will print
  2536.            the file  to the  spooler where    it will  be added to the
  2537.            queue and  printed in  background mode.    See  the  VSPOOL
  2538.            
  2539.            NED v1.7a User's Guide                            Page  48
  2540.  
  2541.            command below.
  2542.  
  2543.            To set your page layout i.e. page length, top, bottom and
  2544.            left margins,  see the  YLAYOUT    command  below    and  the
  2545.            LAYOUT statement in section 5.3.
  2546.  
  2547.  
  2548.            QUIT    Quit NED and return to DOS
  2549.            Syntax: Q [{a|s}]
  2550.  
  2551.            The QUIT  command first    goes through  all the open areas
  2552.            checking for  any changes.  If none    are found,    you  are
  2553.            returned to    DOS. If  changes are  found in    a  file  NED
  2554.            displays the message:
  2555.  
  2556.                 (S)ave (A)bort or (C)ancel ?
  2557.  
  2558.            You can    save or abort the file or cancel the entire quit
  2559.            operation in  which case  you remain  in Command  mode. A
  2560.            shorthand method  is also  available with  this    command.
  2561.            QUIT with the 'a' parameter quits from NED without saving
  2562.            any files  even if  changes have been recorded. QUIT with
  2563.            the 's'    parameter saves  any  files  that  have  changed
  2564.            without prompting and then quits.
  2565.  
  2566.            If the  spooler is  active and  you attempt    to quit, NED
  2567.            will display the message:
  2568.  
  2569.                 Background is busy
  2570.  
  2571.            and will not exit to DOS until printing is finished.
  2572.  
  2573.  
  2574.            REPLACE Replaces text with a specified string
  2575.            Syntax: R string[,{number|g[,n]}]
  2576.  
  2577.            Before using this command you must use either the SPECIFY
  2578.            command or  the Block  Mode 's'    command to tell NED what
  2579.            you    want  to  replace  (target    pattern).  This  command
  2580.            requires a  string which  will replace the target pattern
  2581.            if found.
  2582.  
  2583.            If just    the string is given, NED will attempt to replace
  2584.            the next  occurrence of    the target    pattern with it. For
  2585.            example:
  2586.  
  2587.                 <Esc>Sfor<Enter>RFOR<Enter>
  2588.  
  2589.            will replace the next occurrence of "for" with "FOR". You
  2590.            can append  an optional    number to  specify    the  maximum
  2591.            number of replacements to be made. Alternatively, you may
  2592.            append a  ',g' which  will  replace    the  target  pattern
  2593.            across the  whole file  (globally). Each time a target is
  2594.            found you will be prompted:
  2595.  
  2596.                 Replace (Y/N) ?
  2597.  
  2598.            if you  answer 'y'  NED will replace the pattern with the
  2599.            
  2600.            NED v1.7a User's Guide                            Page  49
  2601.  
  2602.            string, if  you answer  'n', NED continues searching. You
  2603.            may also  press ESC    at this prompt, which will abort the
  2604.            command.
  2605.  
  2606.            You may    further append a ',n' which suppresses the above
  2607.            prompting. For example:
  2608.  
  2609.                 <Esc>Sbill<Enter>Raccount,g,n<Enter>
  2610.  
  2611.            will replace  the all occurrences of the word 'bill' with
  2612.            'account' without  any prompting.  When NED    has finished
  2613.            replacing, the message:
  2614.  
  2615.                 <number> replaced, <number> overflows
  2616.  
  2617.            is displayed  showing the number of replacements made and
  2618.            the number  of overflows  encountered. An overflow occurs
  2619.            when the  replaced text    expands the line to greater than
  2620.            256 characters.    In this  case the  line is truncated. To
  2621.            replace a comma (,) precede it with a backslash character
  2622.            (\,). You  can retrieve    the last  replacement  parameter
  2623.            with the up arrow in parameter entry mode.
  2624.  
  2625.  
  2626.            SPECIFY Specifies a search expression
  2627.            Syntax: S expression
  2628.  
  2629.            This command  tells NED    what pattern  to look  for    when
  2630.            searching for  or  replacing  text.    SPECIFY  accepts  an
  2631.            expression conforming  to the Regular Expression Language
  2632.            described in section 5.6. For example:
  2633.  
  2634.                 <Esc>S/\*.*\*/<Enter>
  2635.  
  2636.            will search    for a  'C' comment line. See section 5.6 for
  2637.            details on  using this  language. To  begin searching you
  2638.            must press  F8, SHIFT  F8, CTRL    F8 or  issue  a  REPLACE
  2639.            command. SPECIFY  expressions may  also be  set using the
  2640.            's' command in Block Mode. See section 5.7 for details on
  2641.            the Block Mode.
  2642.  
  2643.            The SPECIFY    expression may be used across all open areas
  2644.            and remains    current until a new expression is specified.
  2645.            You can    retrieve the  last SPECIFY parameter with the up
  2646.            arrow in parameter entry mode.
  2647.  
  2648.  
  2649.            TABSET  Sets the tabstop template
  2650.            Syntax: T {column[,column...]|r}
  2651.  
  2652.            This command  sets the  tabstop template to the specified
  2653.            column  number(s).    If    you   specify  only  one  column
  2654.            parameter, tabs    are set  to a  width of column-1 for the
  2655.            entire template. For example:
  2656.  
  2657.                 <Esc>T5<Enter>
  2658.  
  2659.            will set  tabstops at  every fourth column. This is NED's
  2660.            
  2661.            NED v1.7a User's Guide                            Page  50
  2662.  
  2663.            default setting.  If  more  than  one  column  is  given,
  2664.            tabstops are  set accordingly. The difference between the
  2665.            last two  columns is  used to set the remaining tabstops.
  2666.            For example:
  2667.  
  2668.                 <Esc>T7,11<Enter>
  2669.  
  2670.            will set tabstops for FORTRAN programs.
  2671.  
  2672.            You can    reset the  template to    the default with the 'r'
  2673.            parameter. This    command is also available in CONFIG.NED,
  2674.            see section 5.3 for more details.
  2675.  
  2676.  
  2677.            USE       Load a macro file
  2678.            Syntax: U macrofile
  2679.  
  2680.            This command  loads a  set of  macros from disk. You need
  2681.            only specify a filename/pathname as the .MCR extension is
  2682.            the default. If macrofile does not exist or is corrupted,
  2683.            NED displays the message:
  2684.  
  2685.                 Invalid MACRO File or File name !
  2686.  
  2687.            You can    enter File    Display mode  by pressing  F1.    This
  2688.            filters *.MCR  files. You  may then    press ENTER  on  the
  2689.            macro file you wish to use. For example:
  2690.  
  2691.                 <Esc>U<F1>
  2692.  
  2693.            If there  are no macro files in the current directory you
  2694.            can select  another directory  using  File  Display    mode
  2695.            through the    OPEN command. Once you have moved to the new
  2696.            directory, exit    File Display  Mode and    re-issue the USE
  2697.            command as above.
  2698.  
  2699.            The MACRO  statement in    CONFIG.NED will  instruct NED to
  2700.            USE a  macro file  when starting  up, see section 5.3 for
  2701.            details.
  2702.  
  2703.  
  2704.            VSPOOL  Print spooler control
  2705.            Syntax: V {p|k[-]|t{1-8192}|1-9}
  2706.  
  2707.            This command  allows you  to pause  or resume  background
  2708.            printing, allow    you to    remove one or all files from the
  2709.            spooler or adjust the timeslice given to the spooler. The
  2710.            following command:
  2711.  
  2712.                 <Esc>Vp<Enter>
  2713.  
  2714.            will pause  background printing if the spooler is active.
  2715.            To resume  printing repeat  the above  command.    This  is
  2716.            useful if  you wish    to devote  all CPU    time to  editing
  2717.            processes.
  2718.  
  2719.            The spooler    queue can handle up to ten files.  Each time
  2720.            
  2721.            NED v1.7a User's Guide                            Page  51
  2722.  
  2723.            a file  is sent    to the spooler it is added to the end of
  2724.            the queue.  As the  printing of    a file is completed, all
  2725.            remaining files    are moved  up one place in the queue. To
  2726.            remove all  files from  the spooler    queue including  the
  2727.            active spool  file use the 'k' parameter. NED also allows
  2728.            you to  flush the  contents    of    the  printer  buffer  by
  2729.            appending  '-'    character  to  the    'k'  parameter.  For
  2730.            example:
  2731.  
  2732.                 <Esc>Vk-<Enter>
  2733.  
  2734.            You may    selectively remove    one file  from    the  spooler
  2735.            queue by  specifying its  position in  the queue.  Either
  2736.            enter the queue number for the file you wish to remove or
  2737.            you may    browse through    the queue  with the  up or    down
  2738.            arrows. This  will display  the number  and name  of each
  2739.            file in    the queue.    You may then press ENTER on the file
  2740.            you wish to remove.
  2741.  
  2742.            You may    adjust the    amount of  time given to the printer
  2743.            while spooling  with the 't' command. The timeslice value
  2744.            must be    between 1  and 8192.  The greater  the timeslice
  2745.            value, the  less  time  is  given  to  the  printer.  For
  2746.            example:
  2747.  
  2748.                 <Esc>Vt256<Enter>
  2749.  
  2750.            Sets  the  timeslice  to  256.  The    SPOOL  statement  in
  2751.            CONFIG.NED allows  you to  configure the spooler when NED
  2752.            loads. See  section    5.3  for  more    details.  To  toggle
  2753.            background printing on or off use CTRL F6.
  2754.  
  2755.  
  2756.            WRITE   Write the current file
  2757.            Syntax: W [pathname[,n]]
  2758.  
  2759.            With no parameter this command writes the current file to
  2760.            disk regardless    of whether    there have    been any changes
  2761.            made to    it. SHIFT  F10 is  a short-cut for this command,
  2762.            see section    5.2 for  details.  You    may  specify  a  new
  2763.            pathname to    write the  file to. If this file exists, NED
  2764.            will prompt:
  2765.  
  2766.                 File Exists, Overwrite it ? (Y/N)
  2767.  
  2768.            If  you    press  'n'    the  command  is  aborted.    You  may
  2769.            alternatively enter File Display mode to find an existing
  2770.            file to overwrite by pressing F1 in parameter entry mode.
  2771.            You may    optionally append  the 'n' parameter to pathname
  2772.            which suppresses  the stripping    of whitespace characters
  2773.            from the end of each line when writing.
  2774.  
  2775.  
  2776.            XSAVE   Save the File List
  2777.            Syntax: X [pathname]
  2778.  
  2779.            This command writes the File List to disk. If pathname is
  2780.            not given,  NED will  write the File List to FILES.NED if
  2781.            
  2782.            NED v1.7a User's Guide                            Page  52
  2783.  
  2784.            you did not start NED with an '@file' ('At' file). If you
  2785.            started NED    with an  '@file' it  will  be  updated.  See
  2786.            section 4.2    for  details  on  using  '@files'.    You  may
  2787.            optionally specify  a new  pathname to  save the list to.
  2788.  
  2789.            The extension  .NED is  the default    so you needn't enter
  2790.            it. For example:
  2791.  
  2792.                 <Esc>Xmyfiles<Enter>
  2793.  
  2794.            will save the current File List to MYFILES.NED. To load a
  2795.            File List  when starting  NED type  the '@' symbol before
  2796.            the filename. For example:
  2797.  
  2798.                 ned @myfiles<Enter>
  2799.  
  2800.            loads the  File List  MYFILES.NED from  disk when loading
  2801.            NED.
  2802.  
  2803.            When in    the File  List window  in File Display mode, you
  2804.            can save  the File List to FILES.NED by pressing CTRL F4.
  2805.            See section 4.2 for more details on File Lists.
  2806.  
  2807.  
  2808.            YLAYOUT Set print page
  2809.            Syntax: Y [length,topmargin,bottommargin[,leftmargin]]
  2810.  
  2811.            This command  sets the  print page  dimensions.    With  no
  2812.            parameters, the    page length  is set  to 66 lines the top
  2813.            and bottom margins are set to 3 lines and the left margin
  2814.            is set to 0 characters. If you wish to print on the whole
  2815.            page e.g. on standard continuous stationary, the command:
  2816.  
  2817.                 <Esc>Y66,0,0<Enter>
  2818.  
  2819.            would cancel the top and bottom margins. If the topmargin
  2820.            plus the  bottommargin is greater than page length or the
  2821.            margins are less than 0, the message:
  2822.  
  2823.                 Invalid print page layout
  2824.  
  2825.            will be    displayed. In  this case,  the existing settings
  2826.            will remain    unchanged. If  you want a left margin of ten
  2827.            characters use the following command:
  2828.  
  2829.                 <Esc>Y66,3,3,10<Enter>
  2830.  
  2831.            NED also allows you to specify the default page layout in
  2832.            CONFIG.NED, see the LAYOUT statement in section 5.3.
  2833.  
  2834.  
  2835.            ZSORT   Sort the current file
  2836.            Syntax: Z [{width|startcol,endcol}]
  2837.  
  2838.            With no    parameters, this  command sorts the current file
  2839.            alphabetically. You may specify the maximum width that is
  2840.            significant in sorting. For example:
  2841.  
  2842.            
  2843.            NED v1.7a User's Guide                            Page  53
  2844.  
  2845.                 <Esc>Z20<Enter>
  2846.  
  2847.            sorts the  current file    alphabetically    considering  the
  2848.            first twenty  characters of    the each  line only. You may
  2849.            instruct NED  to sort  the file by text that lies between
  2850.            the startcol and endcol. For example:
  2851.  
  2852.                 <Esc>Z15,23<Enter>
  2853.  
  2854.            will sort the following output from the DOS DIR command:
  2855.  
  2856.                DISTRIB    DOC      3008 19-01-92     3:40a
  2857.                FASTPRN    EXE     14441 08-01-92    11:44p
  2858.                LICENSE    DOC      5510 19-01-92     6:05p
  2859.                NCAL     EXE     42576 21-01-92     3:24a
  2860.                NED        DOC    286751 29-01-92     2:10a
  2861.                NED        EXE     96021 01-02-92     2:28a
  2862.                NHELP    EXE     21199 01-02-92     2:26a
  2863.                OMBUDSMN ASP       811 10-01-92    11:21p
  2864.                PACKING    LST       907 25-01-92    11:35p
  2865.                READ     ME        10840 31-01-92    11:34p
  2866.                REGISTER FRM      1417 19-01-92     2:09a
  2867.                SAMPLE    MCR     11240 26-01-92     3:14a
  2868.                SYSOP    DOC      4036 25-01-92     6:07p
  2869.  
  2870.            on the file size column, to produce:
  2871.  
  2872.                OMBUDSMN ASP       811 10-01-92    11:21p
  2873.                PACKING    LST       907 25-01-92    11:35p
  2874.                REGISTER FRM      1417 19-01-92     2:09a
  2875.                DISTRIB    DOC      3008 19-01-92     3:40a
  2876.                SYSOP    DOC      4036 25-01-92     6:07p
  2877.                LICENSE    DOC      5510 19-01-92     6:05p
  2878.                READ     ME        10840 31-01-92    11:34p
  2879.                SAMPLE    MCR     11240 26-01-92     3:14a
  2880.                FASTPRN    EXE     14441 08-01-92    11:44p
  2881.                NHELP    EXE     21199 01-02-92     2:26a
  2882.                NCAL     EXE     42576 21-01-92     3:24a
  2883.                NED        EXE     96021 01-02-92     2:28a
  2884.                NED        DOC    286751 29-01-92     2:10a
  2885.  
  2886.  
  2887.            1MARGIN Set the right hand margin
  2888.            Syntax: 1 [rightcolumn]
  2889.  
  2890.            This command  sets the  right hand  margin for word wrap.
  2891.            With no    parameters, this  command resets  the right hand
  2892.            margin to 65.
  2893.  
  2894.            The rightcolumn must be between 1 and 256. Only one right
  2895.            hand column    may be    specified. If  the column  given  is
  2896.            invalid, NED will display the message:
  2897.  
  2898.                 Invalid right hand margin
  2899.  
  2900.            For example:
  2901.  
  2902.                 <Esc>145<Enter>
  2903.            
  2904.            NED v1.7a User's Guide                            Page  54
  2905.  
  2906.  
  2907.            Sets the  right hand margin to 45. NED also allows you to
  2908.            specify the    default right hand margin in CONFIG.NED, see
  2909.            the WORDWRAP  statement in  section 5.3.  See section 3.4
  2910.            for details on using word wrap.
  2911.  
  2912.  
  2913.            2DOS    Execute DOS command
  2914.            Syntax: 2 [command [parameter...]]
  2915.  
  2916.  
  2917.            3SPEED  Set keyboard speed
  2918.            Syntax: 3 {0-5}
  2919.  
  2920.  
  2921.  
  2922.            
  2923.            NED v1.7a User's Guide                            Page  55
  2924.  
  2925.            *********************************************************
  2926.            NED v1.7a User's Guide
  2927.            Section 5.2      Function Reference
  2928.  
  2929.            Introduction
  2930.            This section  describes the    function keys  used in    NED.
  2931.            Function keys  perform a  particular action    for which no
  2932.            parameters are required.
  2933.  
  2934.  
  2935.            UP/DOWN ARROWS                          Previous/Next line
  2936.  
  2937.            These keys  move the  cursor up    or down one line. If the
  2938.            cursor is  at the top of the window and you press UP, the
  2939.            screen will    scroll down  one line. Alternatively, if you
  2940.            at the  bottom of the Edit window and you press DOWN, the
  2941.            screen will    scroll up  one line. If you are on the first
  2942.            or last    line of  the file  and you press UP or DOWN, the
  2943.            screen will not scroll and NED will beep.
  2944.  
  2945.            If the  SCROLL LOCK is on, the Edit window will scroll up
  2946.            or down    and the  cursor will remain in the same relative
  2947.            position on the edit window.
  2948.  
  2949.            HOME/END                                   Start/End line
  2950.  
  2951.            The HOME key moves the cursor to the first non whitespace
  2952.            character of the current line.
  2953.  
  2954.            The END    key moves  the cursor  one space to the right of
  2955.            the    last   character  on  the  current    line  (including
  2956.            whitespace characters).    These keys    have the same effect
  2957.            in Command mode.
  2958.  
  2959.            PGUP/PGDN                              Previous/Next page
  2960.  
  2961.            These keys  scroll the  edit window    up or down one page,
  2962.            normally +- 20 lines. The cursor will be left at the same
  2963.            relative position in the window. If you are at the top or
  2964.            bottom of  the file these keys will have no effect. These
  2965.            functions are  designed to  operate very  quickly and you
  2966.            can therefore  hold these  keys down  without filling the
  2967.            keyboard buffer.
  2968.  
  2969.            CTRL PGUP/CTRL PGDN                       Top/Bottom screen
  2970.  
  2971.            These keys  move the  cursor to the top or bottom line of
  2972.            the edit window.
  2973.  
  2974.            CTRL HOME/CTRL END                         First/Last line
  2975.  
  2976.            The CTRL  HOME key  takes the cursor to first line of the
  2977.            file. The  column position  remains as  it was unless you
  2978.            press CTRL SHIFT HOME which takes the cursor to the first
  2979.            column.
  2980.  
  2981.            The CTRL END key moves the cursor to the last line of the
  2982.            file. The  column position  remains as  it was unless you
  2983.            
  2984.            NED v1.7a User's Guide                            Page  56
  2985.  
  2986.            press CTRL  SHIFT END which takes the cursor to the first
  2987.            column on the last line.
  2988.  
  2989.            LEFT/RIGHT ARROWS                 Previous/Next character
  2990.  
  2991.            These keys move the cursor left or right one character on
  2992.            the current    line. If  the cursor  is at the right of the
  2993.            Edit window    and you  press RIGHT, the screen will scroll
  2994.            left  one   character  unless  you  are    on    column    256.
  2995.  
  2996.            Alternatively if  you are  at the left of the edit window
  2997.            and you    press LEFT,  the screen  will scroll  right  one
  2998.            character unless you are on column 1.
  2999.  
  3000.            If the  SCROLL LOCK    is on,    the Edit  window will scroll
  3001.            left or    right and  the cursor  will remain    in the    same
  3002.            relative position on the screen. These keys have the same
  3003.            effect in Command mode.
  3004.  
  3005.            CTRL LEFT/CTRL RIGHT                   Previous/Next word
  3006.  
  3007.            These keys  move the  cursor  to  the  beginning  of  the
  3008.            previous or    next word. If the cursor is at the beginning
  3009.            of a line and you press
  3010.  
  3011.            CTRL LEFT,  NED will  move the cursor to the beginning of
  3012.            the last  word on  the previous    line. Similarly,  if the
  3013.            cursor is  at the end of a line and you press CTRL RIGHT,
  3014.            NED will  move the  cursor to  the beginning of the first
  3015.            word on the next line.
  3016.  
  3017.            A word  is defined  as a character or group of characters
  3018.            surrounded by  one or  more interword delimiters. See the
  3019.            INTERWORD command in section 5.1 for more details.
  3020.  
  3021.            BACKSPACE (BS)                    Blank previous character
  3022.  
  3023.            This key  moves the    cursor to  the left  one  space  and
  3024.            blanks the character under it. If you are in insert mode,
  3025.            BS deletes the character to the left dragging text to the
  3026.            right of  the cursor to the left. This is the opposite of
  3027.            the DEL    key. This  key has    the same  effect in  Command
  3028.            mode. When word wrap is on and the cursor is at the first
  3029.            column of  a line  and the  line is not the first line of
  3030.            the file,  BS joins    the current  line to  the end of the
  3031.            previous line.
  3032.  
  3033.            DELETE (DEL)                             Delete character
  3034.  
  3035.            This key  deletes the character under the cursor dragging
  3036.            text to the right of the cursor to the left. This key has
  3037.            the same effect in Command mode.
  3038.  
  3039.            When word  wrap is  on and  the cursor is at the end of a
  3040.            line and  the line  is not the last line of the file, DEL
  3041.            joins the next line to the end of the current line.
  3042.  
  3043.            ENTER                                 Open new line below
  3044.            
  3045.            NED v1.7a User's Guide                            Page  57
  3046.  
  3047.  
  3048.            The ENTER key opens up a new line below the current line.
  3049.            If the  Auto-indent flag  is off, the cursor is placed at
  3050.            the first  column. If  the Auto-indent  flag is    on,  the
  3051.            cursor is placed under the first non whitespace character
  3052.            of the previous line.
  3053.  
  3054.            When auto-indent  is on,  RIGHT    SHIFT  ENTER  moves  the
  3055.            cursor one  tabstop    to    the  right    of    the  first    non-
  3056.            whitespace character  of the  line above  and LEFT  SHIFT
  3057.            ENTER moves    the cursor    one  tabstop  to  the  left.  In
  3058.            Command mode,  this key    executes the  selected    command.
  3059.  
  3060.            When word wrap is on, ENTER splits the line at the cursor
  3061.            position, moving  the cursor  to the beginning of the new
  3062.            line. This  is the same as pressing CTRL M when word wrap
  3063.            is off.
  3064.  
  3065.            CTRL ENTER                             Open new line above
  3066.  
  3067.            This key  operates in  exactly the  same way as the ENTER
  3068.            key except that it opens a line above the current line.
  3069.  
  3070.            ESCAPE (ESC)                                 Command mode
  3071.  
  3072.            This  key   moves  the    cursor    to     the  command  area,
  3073.            temporarily suspending  editing of  the file.  If you are
  3074.            already in Command mode, this key returns you to the Edit
  3075.            window.
  3076.  
  3077.            See section 5.1 for details on NED's commands and section
  3078.            3.1 for    details on    the using  the command    area. If you
  3079.            wish to enter an escape character in your file press CTRL
  3080.            ESC.
  3081.  
  3082.            SHIFT ESCAPE                            Exit Command mode
  3083.  
  3084.            This key  moves the    cursor from  the command area to the
  3085.            Edit window.  It  has  been    designed  to  be  used    when
  3086.            recording macros.  It allows  you to control which window
  3087.            the cursor is in when a macro runs.
  3088.  
  3089.            Note that  you cannot  enter Command  mode with this key.
  3090.            See section 4.4 for details on using macros.
  3091.  
  3092.            INSERT (INS)                                  Insert mode
  3093.  
  3094.            This key  toggles between insert and overtype modes. When
  3095.            in insert  mode any    text entered will automatically push
  3096.            all characters  from the  cursor to    the right.    When  in
  3097.            overtype mode  any character typed replaces the character
  3098.            under the cursor.
  3099.  
  3100.            In insert  mode the cursor appears as a half block and in
  3101.            overtype mode  the cursor is a quarter block. The initial
  3102.            status  of  insert  mode  can  be  set  with  the  INSERT
  3103.            statement in CONFIG.NED, see section 5.3 for details.
  3104.  
  3105.            
  3106.            NED v1.7a User's Guide                            Page  58
  3107.  
  3108.            This key has the same effect in Command mode.
  3109.  
  3110.            SCROLL LOCK                                   Freeze cursor
  3111.  
  3112.            This key toggles the scroll lock function on and off. The
  3113.            default is  off. When  on, the Edit window instead of the
  3114.            cursor moves  when you  press the LEFT, RIGHT, UP or DOWN
  3115.            keys.  This     is  useful  for  browsing    through  a    file
  3116.            particularly when it is wider than 80 characters.
  3117.  
  3118.            TAB                                               Right tab
  3119.  
  3120.            If you  are not    in insert mode this key moves the cursor
  3121.            one tabstop    to the    right. If the cursor is at the right
  3122.            of the  Edit window and you press the TAB key, the screen
  3123.            will scroll    left one  tabstop unless  you are  on column
  3124.            256. If    you are  in insert mode, the TAB key inserts the
  3125.            equivalent number  of spaces  to take  the cursor  to the
  3126.            next tabstop,  pushing text    to the right. This will only
  3127.            insert spaces up to the maximum of 256 characters. If the
  3128.            hard-tab flag  is  on,  this  key  will    enter  hard  tab
  3129.            characters into the file.
  3130.  
  3131.            SHIFT TAB                                        Left tab
  3132.  
  3133.            If you  are not    in insert mode this key moves the cursor
  3134.            one tabstop    to the left. If the cursor is at the left of
  3135.            the Edit  window and  you press    the SHIFT  TAB key,  the
  3136.            screen will    scroll right  one tabstop  unless you are on
  3137.            column 1.
  3138.  
  3139.            If you  are in  insert mode the SHIFT TAB key deletes the
  3140.            equivalent number of characters to take the cursor to the
  3141.            previous tabstop, dragging text to the left.
  3142.  
  3143.            F1                                                    Help
  3144.  
  3145.            This key attempts to load the help system. NHELP.EXE must
  3146.            be either  in the current directory or reside on the PATH
  3147.            and    there    must  be   64Kb  of   memory  available.  If
  3148.            insufficient memory    is available or the help file cannot
  3149.            be found, NED will display the following message:
  3150.  
  3151.                 Can't load Help File
  3152.  
  3153.            The help  system is divided into ten screens the first of
  3154.            which is  an index to the other nine. Enter the number of
  3155.            the screen  you wish  to view  or use  UP or DOWN arrows,
  3156.            ENTER and  PGUP or  PGDN to    browse through    the screens.
  3157.  
  3158.            HOME and  F1 takes  you to the index screen and END takes
  3159.            you to the last screen. To return to your file press ESC.
  3160.            This key is a shortcut for the HELP command.
  3161.  
  3162.            SHIFT F1                                 Select File List
  3163.  
  3164.            This key  enters File  Display mode    and selects the File
  3165.            List window.  If there are no files in the File List, NED
  3166.            
  3167.            NED v1.7a User's Guide                            Page  59
  3168.  
  3169.            will select the Directory window.
  3170.  
  3171.            You can    use UP,  DOWN, HOME, END, PGUP or PGDN to browse
  3172.            the File  List. If you press ENTER over any file NED will
  3173.            try to  OPEN it.  You may move to the directory window by
  3174.            pressing the TAB key. If there is not enough memory to
  3175.  
  3176.                 enter File Display mode,
  3177.  
  3178.            NED will display the message:
  3179.  
  3180.                 Insufficient Memory !
  3181.  
  3182.            CTRL F1                                      Open next file
  3183.  
  3184.            This key  attempts to  OPEN the    next file  from the File
  3185.            List. If  you don't    have a File List or the file pointer
  3186.            is at  the end  of the  list then  NED will    display  the
  3187.            message:
  3188.  
  3189.                 End of File List reached
  3190.  
  3191.            This key is a shortcut for the following keystrokes:
  3192.  
  3193.                 <Esc>O<Enter><Esc>
  3194.  
  3195.            F2                                           Restore scrap
  3196.  
  3197.            This key  restores text    from the  Scrap  buffer  to  the
  3198.            current file.  If the scrap is intra-line (within a line)
  3199.            the restored  text will be inserted into the current line
  3200.            at the  cursor position. If the cursor is past the end of
  3201.            the line,  NED will    append the    text to  the end  of the
  3202.            line. If  the length  of the  line plus    the width of the
  3203.            scrap is  greater than  256 characters, NED will beep and
  3204.            not restore    the  text.    Intra-line    scrap  can    only  be
  3205.            created in Block Mode. If however the scrap is inter-line
  3206.            (one or    more lines)  then  the    restored  text    will  be
  3207.            inserted below  the current    line. When    text is restored
  3208.            NED will display the message:
  3209.  
  3210.                 number lines copied from Scrap
  3211.  
  3212.            You will  only be  allowed to  insert  lines  up  to  the
  3213.            maximum number  of lines  allowed, set  by  the    MAXLINES
  3214.            statement in  CONFIG.NED.  In  this    situation  NED    will
  3215.            restore as  many lines from scrap as it can, then display
  3216.            the message:
  3217.  
  3218.                 number lines ONLY copied from Scrap
  3219.  
  3220.            If there  is not  enough memory    available to restore the
  3221.            entire scrap  buffer, NED will restore as much as it can.
  3222.            If there  is no    memory    available,    NED  will  beep  and
  3223.            display the message:
  3224.  
  3225.                 Insufficient Memory !
  3226.  
  3227.            
  3228.            NED v1.7a User's Guide                            Page  60
  3229.  
  3230.            SHIFT F2                                      Delete line
  3231.  
  3232.            This key  deletes (or cuts) the current line to the scrap
  3233.            buffer. Whatever  was previously  in the  scrap buffer is
  3234.            lost.
  3235.  
  3236.            You may append lines to the scrap buffer with consecutive
  3237.            SHIFT F2  strokes as  long as  no other key is pressed in
  3238.            between. In    this way you can cut an entire block of text
  3239.            to scrap.  If you  have deleted    all lines  in a file NED
  3240.            will insert    one blank line at the beginning of the file.
  3241.  
  3242.            When a  line  is  cut  to  scrap,  NED  will  display  an
  3243.            abbreviation of    the deleted  text to the right of line 3
  3244.            in the system window.
  3245.  
  3246.            CTRL F2                                       Restore above
  3247.  
  3248.            This key  is the same as F2 except that scrap is inserted
  3249.            above the  current line instead of below it. If the scrap
  3250.            is intra-line,  NED will  insert the  text at  the cursor
  3251.            column in the previous line. If the cursor column is past
  3252.            the end of the previous line, NED will append the text to
  3253.            the previous  line. If the cursor is on the first line of
  3254.            the file, NED will beep, and not insert the scrap.
  3255.  
  3256.            F3                                               Join line
  3257.  
  3258.            This key  joins the    next line  to the end of the current
  3259.            line. If  the length  of both  lines is    greater than 256
  3260.            characters, NED    will join  as much    of the    next line as
  3261.            possible, leaving  the remainder on the next line. If the
  3262.            cursor is  located within  the original    line, the joined
  3263.            line will  be appended  to the  current line. If, however
  3264.            the cursor  is off  the end    of the current line the next
  3265.            line will be joined at the cursor position. If you are on
  3266.            the last line of the file, NED will beep.
  3267.  
  3268.            SHIFT F3                                       Split line
  3269.  
  3270.            This key  splits the current line at the cursor position.
  3271.            All characters  from the  cursor to    the end  of the line
  3272.            will form  a new  line under  the current line. After the
  3273.            line is    split, the    cursor remains in the same position.
  3274.  
  3275.            This key  has the  same effect  as CTRL M except that the
  3276.            cursor remains at the end of the old line.
  3277.  
  3278.            CTRL F3                                           Copy line
  3279.  
  3280.            This key  copies the  current line  to the  scrap buffer.
  3281.            This key has the same effect as the following keys:
  3282.  
  3283.                 <Shift F2><Up><F2><Down>
  3284.  
  3285.            F4                                              Block mode
  3286.  
  3287.            This key  enters Block mode. You may also exit Block mode
  3288.            
  3289.            NED v1.7a User's Guide                            Page  61
  3290.  
  3291.            with this key. See section 5.4 for details on Block mode.
  3292.  
  3293.            SHIFT F4                                        DOS shell
  3294.  
  3295.            This key  invokes a    DOS shell.    NED  is  suspended,  the
  3296.            screen is cleared and you are handed over to DOS. You may
  3297.            then enter any DOS commands. To return to NED type 'exit'
  3298.            at the  DOS prompt  and    NED  will  be  restored  to  its
  3299.            previous state.
  3300.  
  3301.            A single  block of  at least 64Kb of contiguous memory is
  3302.            required to    invoke the    shell. If  there isn't    a  block
  3303.            large enough, NED will display the message:
  3304.  
  3305.                 Insufficient memory !
  3306.  
  3307.            Remember that you will also need some memory to run other
  3308.            programs. When  out in  the shell  be careful not to load
  3309.            any program    that may  effect what  is already in memory,
  3310.            especially a  memory resident  program (TSR).  If for any
  3311.            reason the  system memory  is corrupted you may lose your
  3312.            edits, therefore  it is    a good    idea to save the file(s)
  3313.            you are working on before you shell.
  3314.  
  3315.            CTRL F4                                  Save configuration
  3316.  
  3317.            This key  instructs NED    to write the current environment
  3318.            settings  to   the  file   CONFIG.NED,  in    the  current
  3319.            directory. This function is useful for firstly creating a
  3320.            new CONFIG.NED  file and secondly to save a special setup
  3321.            you may    require. All parameters described in section 5.3
  3322.            are    included   in  the     file.    Two  options  are  worth
  3323.            mentioning. These are:
  3324.  
  3325.                 FILE=filename
  3326.                 GOTO=line,column
  3327.  
  3328.            In the  first statement,  NED  will    insert    the  current
  3329.            area's filename. In the second statement, NED will insert
  3330.            the current    cursor line  and column. When completed, NED
  3331.            will display the message:
  3332.  
  3333.                 CONFIG.NED written to disk
  3334.  
  3335.            F5                                             Brace match
  3336.  
  3337.            This key  attempts  to  find  a    matching  brace,  square
  3338.            bracket, angle bracket or parentheses. The cursor must be
  3339.            over one  of these  characters. If the cursor is not over
  3340.            one of  these characters,  NED will    beep and display the
  3341.            message:
  3342.  
  3343.                 Cursor must point to {([«<!?¿¡>»])}
  3344.  
  3345.            NED will try to match across the entire file as follows:
  3346.  
  3347.                 [  to match  ]
  3348.                 <  to match  >
  3349.            
  3350.            NED v1.7a User's Guide                            Page  62
  3351.  
  3352.                 {  to match  }
  3353.                 (  to match  )
  3354.  
  3355.            If the  character is  an opener    (left column  above) NED
  3356.            will search downwards, otherwise NED will search upwards.
  3357.  
  3358.            If a match is not found NED will display the message:
  3359.  
  3360.                 Match Not Found !
  3361.  
  3362.            If a  match is  found, NED  will move  the cursor  to the
  3363.            matching character.
  3364.  
  3365.            This function is particularly useful for checking complex
  3366.            bracketed expressions  in programs.    For example  in  the
  3367.            following expression,  you may  wish to    check that    each
  3368.            opening parentheses has a matching close:
  3369.  
  3370.                 if ((ln[j]=alloc_line(strlen(buf[i])))==(char*)0)
  3371.  
  3372.            SHIFT F5                                           Redraw
  3373.  
  3374.            This key redraws the screen, positioning the current line
  3375.            in the middle of the Edit window.
  3376.  
  3377.            CTRL F5                                         Freeze/thaw
  3378.  
  3379.            This key  freezes the screen from the current line to the
  3380.            bottom of  the Edit    window. You  may continue editing in
  3381.            the unfrozen top part of the window. You cannot leave any
  3382.            less than five lines unfrozen. If you attempt to do this,
  3383.            NED will beep.
  3384.  
  3385.            A bold  double ruled  line will    appear to  separate  the
  3386.            frozen from    the unfrozen  areas. To  unfreeze (thaw) the
  3387.            screen press  CTRL F5  again. PGUP  and PGDN  will scroll
  3388.            through the    file one line less than the unfrozen window.
  3389.  
  3390.            You may    freeze the screen in one area, change to another
  3391.            and    continue   editing.  This  function  is  useful  for
  3392.            displaying two  separate files  or two  parts of the same
  3393.            file together.
  3394.  
  3395.            F6                                            ASCII tables
  3396.  
  3397.            This key invokes the ASCII tables. This is a small window
  3398.            that displays 32 characters of the ASCII character set at
  3399.            a time.
  3400.  
  3401.            The table displays each character in decimal, hexadecimal
  3402.            and ASCII. For example:
  3403.  
  3404.                    DEC    HEX  CHR
  3405.                    42    2A     *
  3406.  
  3407.            You may    use the  UP or DOWN arrows, HOME and END to move
  3408.            through the    pages. Press  ESC to return to your file. If
  3409.            you are    on the first page of the tables, the F1 key will
  3410.            
  3411.            NED v1.7a User's Guide                            Page  63
  3412.  
  3413.            toggle between  character names    and character  literals.
  3414.  
  3415.            NCAL.EXE must  be either  in the  current directory or on
  3416.            the PATH.  There must  also be  at least  50Kb of  memory
  3417.            available to  use the  tables. If  there is    insufficient
  3418.            memory, NED will display the message:
  3419.  
  3420.                 Can't load Help File
  3421.  
  3422.            SHIFT F6                                       Calculator
  3423.  
  3424.            This key  invokes the  calculator. This is a small window
  3425.            not unlike  a conventional  hand held  model. It uses the
  3426.            standard  'infix'   method  of    operand/operator/operand
  3427.            notation (e.g 2 + 3).
  3428.  
  3429.            The calculator provides floating point arithmetic to four
  3430.            decimal places.    All the normal functions of a calculator
  3431.            are provided  in both hexadecimal and decimal format. Use
  3432.            the space bar to toggle between these two modes. When you
  3433.            toggle between  modes the currently displayed number will
  3434.            be converted accordingly.
  3435.  
  3436.            NED automatically  selects NUM-LOCK    allowing  you to use
  3437.            the numeric keypad for number entry. To enter hexadecimal
  3438.            A to  F use    CTRL A    to F. If you miskey a number you can
  3439.            backspace (BS)  over it    and re-type  or press  'e' to re
  3440.            enter the whole number. Use 'c' to clear all operands and
  3441.            operators.
  3442.  
  3443.            If the number calculated is too large to be displayed the
  3444.            calculator will show the message:
  3445.  
  3446.                 Overflow
  3447.  
  3448.            When you  have finished press ESC to return to your file.
  3449.  
  3450.            Some of    the special  functions provided  include OR (|),
  3451.            AND (&) and XOR (x). For example:
  3452.  
  3453.                 A3F | 100 <Enter>
  3454.  
  3455.            will produce the result:
  3456.  
  3457.                 B3F
  3458.  
  3459.            NCAL.EXE must  be either  in the  current directory or on
  3460.            the PATH.  There must  also be  at least  50Kb of  memory
  3461.            available to use the calculator. If there is insufficient
  3462.            memory, NED will display the message:
  3463.  
  3464.                 Can't load Help File
  3465.  
  3466.            CTRL F6                          Toggle background printing
  3467.  
  3468.            This key  toggles background printing on or off. NED will
  3469.            display either of the following messages:
  3470.  
  3471.            
  3472.            NED v1.7a User's Guide                            Page  64
  3473.  
  3474.                 Spooler on
  3475.                 Spooler off
  3476.  
  3477.            If the spooler is active, NED will display the message:
  3478.  
  3479.                 Background is busy
  3480.  
  3481.            You cannot  turn  background  off  when    the  spooler  is
  3482.            active. See the VSPOOL command in section 5.1 for details
  3483.            on controlling the spooler once it is active.
  3484.  
  3485.            F7                                            Record macro
  3486.  
  3487.            This key  tells NED    to begin recording a keyboard macro.
  3488.            When you press F7, NED will beep and display the message:
  3489.  
  3490.                 Enter Target Key (ALT F1-20)
  3491.  
  3492.            Enter a key between ALT F1-20 (ALT F11-20 = ALT SHIFT F1-
  3493.            10) to assign the macro to. As you record your macro, NED
  3494.            will display  the number  of keystrokes you have pressed,
  3495.            in the message area.
  3496.  
  3497.            When you  have finished    press F7 again to end recording.
  3498.            NED then displays the message:
  3499.  
  3500.                 End Record (macrokey)
  3501.  
  3502.            You may    record up  to 128 keystrokes per macro. NED will
  3503.            beep at    the 127th  keystroke. If  you continue    to enter
  3504.            keys, NED  will overwrite  the 128th key. See section 4.4
  3505.            and the MACRO command in section 5.1 for more information
  3506.            on using macros.
  3507.  
  3508.            SHIFT F7                                     Macro report
  3509.  
  3510.            This  key   displays  the   Macro  Report   screen  which
  3511.            summarizes the  current macro  file (if    one exists)  and
  3512.            then displays:
  3513.  
  3514.                 Key  Description    Number of Keystrokes
  3515.  
  3516.            for each  of the  twenty keys.  If the  macro key  is not
  3517.            assigned "(free)"  will appear  in the description column
  3518.            in the  normal attribute.  Macros that have been recorded
  3519.            but not  named will display "(untitled)". Used macro keys
  3520.            will be    displayed in  bold. Press  any key    to return to
  3521.            your file.
  3522.  
  3523.            CTRL F7                                               Strip
  3524.  
  3525.            This key toggles the strip flag on or off. When this flag
  3526.            is  on    (default)  trailing  whitespace  characters  are
  3527.            stripped off  each line    of the file as it is saved. When
  3528.            this flag is off this process is suppressed.
  3529.  
  3530.            F8                                             Search down
  3531.  
  3532.            
  3533.            NED v1.7a User's Guide                            Page  65
  3534.  
  3535.            This  key   begins  searching  down    for  the  expression
  3536.            previously entered with the SPECIFY command. If no search
  3537.            expression exists,  NED will  beep. If  no match is found
  3538.            NED displays the message:
  3539.  
  3540.                 (Pattern) not Found
  3541.  
  3542.            If a  matching pattern  is found  the cursor is placed at
  3543.            the beginning of the pattern and it is displayed in bold.
  3544.            You may continue searching down by pressing F8 again.
  3545.  
  3546.            SHIFT F8                                        Search up
  3547.  
  3548.            This key  has exactly  the same    function as  the F8  key
  3549.            except that    it searches  up from the cursor position for
  3550.            the search expression.
  3551.  
  3552.            CTRL F8                                     Search from top
  3553.  
  3554.            This key  has exactly  the same    function as  the F8  key
  3555.            except that it searches down from the top of the file for
  3556.            the    search    expression.  This  is  a  shortcut    for  the
  3557.            following keystrokes:
  3558.  
  3559.                 <Ctrl Shift Home><F8>
  3560.  
  3561.            If the pattern is not found the cursor will remain at the
  3562.            beginning of the first line.
  3563.  
  3564.            F9                                               Goto mark
  3565.  
  3566.            This key  takes the    cursor to the line and column of the
  3567.            marker and displays the line in bold. If no mark has been
  3568.            set in the current area, NED displays the message:
  3569.  
  3570.                 Mark Not Found !
  3571.  
  3572.            You must have previously marked the line with SHIFT F9.
  3573.  
  3574.            SHIFT F9                                  Set/remove mark
  3575.  
  3576.            This key  sets a  mark at  the current line and column of
  3577.            the cursor. The line is displayed in bold and will remain
  3578.            so until  the mark is removed by pressing SHIFT F9 again.
  3579.            When a mark is set, NED displays the message:
  3580.  
  3581.                 Mark set
  3582.  
  3583.            and:
  3584.  
  3585.                 Mark removed
  3586.  
  3587.            when a  mark is    removed. Each of the  ten areas can have
  3588.            its own marker.
  3589.  
  3590.            CTRL F9                                          Auto-entab
  3591.  
  3592.            This key  flips the    auto-entab flag on or off. This flag
  3593.            
  3594.            NED v1.7a User's Guide                            Page  66
  3595.  
  3596.            tells NED  whether to  automatically entab a file when it
  3597.            is written to disk. NED displays the message:
  3598.  
  3599.                 Auto-entab on/off
  3600.  
  3601.            when this key is pressed. See the NTAB command in section
  3602.            5.1 for    further details  and section  5.3 for details on
  3603.            the ENTAB statement in CONFIG.NED.
  3604.  
  3605.            F10                                           Status screen
  3606.  
  3607.            This key  displays the Status screen. See section 3.5 for
  3608.            a description  of this screen. Press any key to return to
  3609.            your file.
  3610.  
  3611.            You may    change areas  by moving  the current  area arrow
  3612.            with the UP or DOWN keys or by entering the number of the
  3613.            area you  wish to  change to.  If you  choose an unopened
  3614.            area you will be returned to your original file.  SHIFT
  3615.  
  3616.            F10                                               Save file
  3617.  
  3618.            This key  writes the  current  file    to    disk.  It  is  a
  3619.            shortcut for the following keystrokes:
  3620.  
  3621.                 <Esc>W<Enter><Esc>
  3622.  
  3623.            CTRL F10                                       Auto-detab
  3624.  
  3625.            This key  flips the    auto-detab flag on or off. This flag
  3626.            tells NED  whether to  automatically detab a file when it
  3627.            is read from disk. NED displays the message:
  3628.  
  3629.                 Auto-detab on/off
  3630.  
  3631.            when this key is pressed.
  3632.  
  3633.            See the    DETAB command in section 5.1 for further details
  3634.            and section    5.3 for  details on  the DETAB    statement in
  3635.            CONFIG.NED.
  3636.  
  3637.            ALT A                                       Goto column 1
  3638.  
  3639.            This key moves the cursor to the first column of the Edit
  3640.            window. If the FIRSTCOL statement in CONFIG.NED is set to
  3641.            '0' this  will be  displayed as    '0' otherwise it will be
  3642.            displayed as '1' in the System window.
  3643.  
  3644.            ALT B                                      Erase to start
  3645.  
  3646.            This key blanks the line from the current cursor position
  3647.            to the beginning of the line.
  3648.  
  3649.            ALT C                                      Centre justify
  3650.  
  3651.            This key  centre justifies  the current line. If the line
  3652.            is less    than or  equal to  80 characters in length it is
  3653.            centred over  80 characters. If it is longer, the line is
  3654.            
  3655.            NED v1.7a User's Guide                            Page  67
  3656.  
  3657.            centred over 256 characters. If word wrap is on, NED will
  3658.            centre the  current line  using the    right hand margin if
  3659.            possible.
  3660.  
  3661.            ALT D                                        Erase to end
  3662.  
  3663.            This key erases the line from the current cursor position
  3664.            to the  end of  the line. This key has the same effect in
  3665.            Command mode.
  3666.  
  3667.            ALT E                                          End window
  3668.  
  3669.            This key moves the cursor to the right most column of the
  3670.            Edit window.
  3671.  
  3672.            ALT F                                          Field copy
  3673.  
  3674.            This key  copies one  character from  the line above (the
  3675.            source line)  at  the  current  cursor  position  on  the
  3676.            current line  (the target  line) and moves the cursor one
  3677.            space to  the right.  SHIFT ALT F does the same except it
  3678.            copies a  character from the line below. If insert is on,
  3679.            the copied  character is  inserted into    the current line
  3680.            and no  more than  256 characters  will be allowed on the
  3681.            target line. NED will beep if you attempt to insert more.
  3682.  
  3683.            Characters will    not be    copied off the end of the source
  3684.            line. If  you are on the first line of the file and press
  3685.            ALT F,  NED will  beep similarly  if you  are on the last
  3686.            line and  press SHIFT  ALT F  NED  will    also  beep.  For
  3687.            example, with the source line:
  3688.  
  3689.                 The rain in Spain
  3690.  
  3691.            if the cursor is placed on the next line under the 'S' in
  3692.            'Spain' and    ALT F is pressed five times, the result will
  3693.            be:
  3694.  
  3695.                 The rain in Spain
  3696.                             Spain
  3697.  
  3698.            ALT G                                      Line case flip
  3699.  
  3700.            This key  flips the    case of the current line. ALT G also
  3701.            works in  conjunction with the left and right SHIFT keys.
  3702.  
  3703.            LEFT SHIFT  ALT G  will only flip lowercase letters RIGHT
  3704.            SHIFT ALT G will only flip uppercase letters. For example
  3705.            if you press ALT G on the following line:
  3706.  
  3707.                 The Rain In Spain
  3708.  
  3709.            it will become:
  3710.  
  3711.                 tHE rAIN iN sPAIN
  3712.  
  3713.            If you press LEFT SHIFT ALT G it will become:
  3714.  
  3715.            
  3716.            NED v1.7a User's Guide                            Page  68
  3717.  
  3718.                 THE RAIN IN SPAIN
  3719.  
  3720.            If you press RIGHT SHIFT ALT G it will become:
  3721.  
  3722.                 the rain in spain
  3723.  
  3724.            ALT H                              Insert Filename string
  3725.  
  3726.            This key  inserts the  current filename    into the current
  3727.            line at    the cursor    position. If  the cursor is past the
  3728.            end of the line, the filename will be appended to the end
  3729.            of the  line. The  string format  will be the same as the
  3730.            area's filename in the first line of the System window.
  3731.  
  3732.            ALT I                                         Auto-indent
  3733.  
  3734.            This key  flips the Auto-indent flag on or off. This flag
  3735.            tells NED  whether to  indent the  cursor under the first
  3736.            non whitespace  character of  the previous  line when you
  3737.            press ENTER.
  3738.  
  3739.            The status  of this flag is shown on line 1 of the system
  3740.            window (I)  being bold  if on.  The default    is off. This
  3741.            flag  can  also    be    set  with  AUTOINDENT  statement  in
  3742.            CONFIG.NED, see section 5.3 for details.
  3743.  
  3744.            ALT K                                          Erase line
  3745.  
  3746.            This key  blanks the  current line.    This should  not  be
  3747.            confused with SHIFT F2 which removes the current line.
  3748.  
  3749.            ALT L                                        Left justify
  3750.  
  3751.            This key  left justifies  the current  line, removing all
  3752.            leading whitespaces.
  3753.  
  3754.            ALT M                                 Character case flip
  3755.  
  3756.            This key flips the case of the character under the cursor
  3757.            (e.g. 'm'  to 'M'  or 'M'  to 'm'). LEFT SHIFT ALT M will
  3758.            only flip  lower case  letters and RIGHT SHIFT ALT M will
  3759.            only flip  upper case  letters. After  the character  has
  3760.            been flipped the cursor is moved one space to the right.
  3761.  
  3762.            ALT N                                     Start next line
  3763.  
  3764.            This key moves the cursor to the first column of the next
  3765.            line.
  3766.  
  3767.            ALT O                                        First column
  3768.  
  3769.            This key flips the first column flag on or off. This flag
  3770.            tells NED  whether the  first column is to be referred to
  3771.            as '1' or '0'.
  3772.  
  3773.            Note that  changes made    to this  flag will    be reflected
  3774.            anywhere that  NED uses    column numbers, for example with
  3775.            the GOTO  command and the ruler. The default is off. This
  3776.            
  3777.            NED v1.7a User's Guide                            Page  69
  3778.  
  3779.            flag  can   also  be   set  with  FIRSTCOL  statement  in
  3780.            CONFIG.NED, see section 5.3 for details.
  3781.  
  3782.            ALT P                                 Start previous line
  3783.  
  3784.            This key  moves the    cursor to  the first  column of  the
  3785.            previous line.
  3786.  
  3787.            ALT Q                                Delete previous word
  3788.  
  3789.            This key  deletes the previous word (the word to the left
  3790.            of the  cursor). The  text to  the right of the cursor is
  3791.            dragged to  the left  accordingly. This key has no effect
  3792.            if you are on the first column of the line.
  3793.  
  3794.            A word  is defined  as a character or group of characters
  3795.            surrounded by  one or  more interword delimiters. See the
  3796.            INTERWORD command in section 5.1 for more details.
  3797.  
  3798.            ALT R                                       Right justify
  3799.  
  3800.            This key right justifies the current line. If the line is
  3801.            less than  or equal    to 80  characters in  length, it  is
  3802.            justified over  80 characters.  If it is longer, the line
  3803.            is justified over 256 characters. If word wrap is on, NED
  3804.            will right  justify the current line using the right hand
  3805.            margin if possible.
  3806.  
  3807.            ALT S                                        Start window
  3808.  
  3809.            This key  moves the cursor to the left most column of the
  3810.            Edit window.
  3811.  
  3812.            ALT T                                            Hard-tab
  3813.  
  3814.            This key  flips the    hard-tab flag  on or  off. This flag
  3815.            tells NED  whether to  treat the  TAB  key  as  a  cursor
  3816.            movement key  when off,    or to insert hard tab characters
  3817.            into the  file if  on. The  default setting    is off. This
  3818.            flag  can   also  be   set  with   HARDTAB  statement  in
  3819.            CONFIG.NED, see section 5.3 for details.
  3820.  
  3821.            ALT U                                                Undo
  3822.  
  3823.            This key  will undo    edits made within a line. This means
  3824.            that the  line is  restored to  its original state before
  3825.            you changed it.
  3826.  
  3827.            You may    restore the  changes you  have made  to the line
  3828.            before you  first pressed  ALT U by pressing ALT U again.
  3829.            There are  certain situations  where ALT  U will  have no
  3830.            effect on  the current  line. Firstly,  changes made to a
  3831.            line cannot    be undone  once you  move to  another  line.
  3832.            Secondly,  certain  functions  reset  the  line    so    that
  3833.            further edits  only may    be undone.    These functions  are
  3834.            split and  join line  entry of  the Block  Mode entry  of
  3835.            Command    mode   entry  of  Status  screen  shell  to  DOS
  3836.            calculator ASCII tables and the Help system.
  3837.            
  3838.            NED v1.7a User's Guide                            Page  70
  3839.  
  3840.  
  3841.            ALT V                                           Word wrap
  3842.  
  3843.            This key  toggles word  wrap on    or off.  When on and the
  3844.            cursor is  moved past  the right hand margin, if the next
  3845.            character entered is an interword delimiter NED will open
  3846.            up a  new line.    If    the  character    entered  is  not  an
  3847.            interword delimiter,  NED will  split  the  line  at  the
  3848.            beginning of the previous word. If a previous word cannot
  3849.            be found the character will be added to the current line.
  3850.  
  3851.            If you  insert text    into a    line, NED will not wrap text
  3852.            that is moved past the right hand margin until the cursor
  3853.            passes the  margin itself. The cursor remains in the same
  3854.            relative position  to the  text wrapped    to the new line.
  3855.  
  3856.            The status  of this flag is shown on line 1 of the system
  3857.            window (W)  being bold if on. The default setting is off.
  3858.  
  3859.            This flag  can also be set with the WORDWRAP statement in
  3860.            CONFIG.NED, see    section 5.3 for details. See section 3.4
  3861.            for details on using word wrap.
  3862.  
  3863.            ALT W                                    Delete next word
  3864.  
  3865.            This key  deletes the next word (the word to the right of
  3866.            the cursor). The text to the right of the deleted word is
  3867.            dragged to  the left  accordingly. A word is defined as a
  3868.            character or  group of  characters surrounded  by one  or
  3869.            more interword  delimiters. See    the INTERWORD command in
  3870.            section 5.1 for more details.
  3871.  
  3872.            ALT Y                             Insert Date/Time string
  3873.  
  3874.            This key  inserts the  current date    and  time  into  the
  3875.            current line  at the  cursor position.  If the  cursor is
  3876.            past the  end of  the line,    the date/time string will be
  3877.            appended to    the current  line. The    string    format    will
  3878.            conform to  the DATEFMT statement in CONFIG.NED. Assuming
  3879.            the date  format 'dmy/',  the string  will appear  in the
  3880.            format:
  3881.  
  3882.                 dayname dd/mm/yyyy    hh:mm {am|pm}
  3883.  
  3884.            for example:
  3885.  
  3886.                 Thursday 18/05/1989  3:03 pm
  3887.  
  3888.            The string is derived from the system clock.
  3889.  
  3890.            ALT Z                                          Column 256
  3891.  
  3892.            This key  takes the cursor to column 256. If the FIRSTCOL
  3893.            statement in  CONFIG.NED is    set  to  '0'  this    will  be
  3894.            displayed as  '255' otherwise  it will  be  displayed  as
  3895.            '256' in the System window.
  3896.  
  3897.            ALT -                                                Snow
  3898.            
  3899.            NED v1.7a User's Guide                            Page  71
  3900.  
  3901.  
  3902.            This key  is for  computers with CGA video adapters. With
  3903.            these adapters,    during a horizontal or vertical retrace,
  3904.            contention between  the processor and the screen produces
  3905.            an unsightly  snow or  flickering on  the screen. Because
  3906.            NED writes  directly to    the video  adapter the ALT - key
  3907.            will  synchronize   screen  writing     with  the     retrace
  3908.            interval. This produces a slightly slower display but one
  3909.            that is a lot clearer.
  3910.  
  3911.            With MDA,  HERCULES, EGA  or VGA  adapters this    is not a
  3912.            problem and    you should    therefore ignore it. This option
  3913.            can also  be set  with the  SNOW statement in CONFIG.NED,
  3914.            see section 5.3 for details.
  3915.  
  3916.            ALT =                                    43/50 line modes
  3917.  
  3918.            This option    is for    EGA and  VGA displays only. This key
  3919.            toggles between    25 and    43/50 line    display modes.    This
  3920.            option can  also  be  set  with    the  MODE  statement  in
  3921.            CONFIG.NED. See section 5.3 for details.
  3922.  
  3923.            
  3924.  
  3925.            ALT SPACE BAR                        Turn ruler on or off
  3926.  
  3927.            This key  turns the ruler display off or on. When on, the
  3928.            ruler is  displayed on  the second  line  of  the  System
  3929.            window when    the cursor    is in the Edit window. The ruler
  3930.            defaults to on. When you enter Command mode, the ruler is
  3931.            always cleared.    You can  set whether  the ruler is on or
  3932.            off when  NED is  loaded  with  the    RULER  statement  in
  3933.            CONFIG.NED, see section 5.3 for details.
  3934.  
  3935.            CTRL 2/CTRL @                                        Quit
  3936.  
  3937.            This key  allow you to quit NED. It is a shortcut for the
  3938.            
  3939.            NED v1.7a User's Guide                            Page  72
  3940.  
  3941.            following keystrokes:
  3942.  
  3943.                 <Esc>Q<Enter>
  3944.  
  3945.            Depending on  the type  of keyboard you use, one of these
  3946.            keys will  work. See  section 5.1 for details on the QUIT
  3947.            command.
  3948.  
  3949.            CTRL ESC                                      Hard Escape
  3950.  
  3951.            This key  allows you  to insert    an escape character (chr
  3952.            27) into your file.
  3953.  
  3954.            CTRL M                                    Split line enter
  3955.  
  3956.            When word  wrap is  off, this key splits the current line
  3957.            at the cursor position. All characters from the cursor to
  3958.            the end    of the    line will  form a  new    line  under  the
  3959.            current line.
  3960.  
  3961.            After the  line is  split, the  cursor is  moved  to  the
  3962.            beginning of  the new  line. If    word  wrap    is    on,  the
  3963.            functions of CTRL M and ENTER are reversed.
  3964.  
  3965.  
  3966.            
  3967.            NED v1.7a User's Guide                            Page  73
  3968.  
  3969.            *********************************************************
  3970.            NED v1.7a User's Guide
  3971.            Section 5.3      Configuration Reference
  3972.  
  3973.            Introduction
  3974.            This section  describes all    the statements    that may  be
  3975.            used in    the start  up file    CONFIG.NED. These statements
  3976.            are used to configure NED to your requirements.
  3977.  
  3978.  
  3979.            AUTOINDENT
  3980.            Syntax: AUTOINDENT={ON|OFF}
  3981.  
  3982.            This statement sets whether Auto-indent is on or off when
  3983.            NED is  loaded. If  this statement  is  not    included  in
  3984.            CONFIG.NED, Auto-  indent defaults  to off. See the ALT I
  3985.            function in section 5.2 for further details.
  3986.  
  3987.  
  3988.            BACKUP
  3989.            Syntax: BACKUP=directory
  3990.  
  3991.            This  statement     sets  the     backup  directory.  If  the
  3992.            directory does  not exist  NED will    prompt you to create
  3993.            it. If  this statement  is not included in CONFIG.NED and
  3994.            the BACKUP command is not issued, backups will be written
  3995.            to the  current directory.  See    the  BACKUP  command  in
  3996.            section 5.1 for further details.
  3997.  
  3998.  
  3999.            COLOUR
  4000.            Syntax: COLOUR=fore,back[,fore,back]
  4001.  
  4002.            This statement allows you set the default colours used by
  4003.            NED. The  first two    parameters are    the  foreground  and
  4004.            background of  the Edit    window.  These    values    must  be
  4005.            numbers between    0 and 7. The third and fourth parameters
  4006.            are optional  and allow    you to    set the  foreground  and
  4007.            background colours  of the System window. For example the
  4008.            following statement:
  4009.  
  4010.                 COLOUR=7,1,0,7
  4011.  
  4012.            will set  white text  on a  blue background    in the    Edit
  4013.            window, and    black text    on a  white  background  in  the
  4014.            System window.  Note that  this statement  will not    work
  4015.            with a  monochrome adapter  (MDA or    HERCULES).    Monitors
  4016.            that are  not colour  but display  shades  of  grey    will
  4017.            respond to  this statement.    If    this  statement  is  not
  4018.            included in CONFIG.NED, NED will default to the following
  4019.            settings:
  4020.  
  4021.                 COLOUR=7,0,0,7
  4022.  
  4023.            See section 4.9 for a table of the colour numbers.
  4024.  
  4025.  
  4026.            DATEFMT
  4027.            
  4028.            NED v1.7a User's Guide                            Page  74
  4029.  
  4030.            Syntax: DATEFMT=formatstring
  4031.  
  4032.            This statement  allows you  to specify  the format of the
  4033.            date string    displayed in  the Status screen, insert date
  4034.            function and  in File  Display mode.  The formatstring is
  4035.            made of    four characters.  The first  three    specify  the
  4036.            order of day, month and year the last character specifies
  4037.            the separator.
  4038.  
  4039.                Symbol     Meaning
  4040.  
  4041.                D         Day
  4042.                M         Month
  4043.                Y         Year
  4044.                char      Separator character
  4045.  
  4046.            If this    statement is not included in CONFIG.NED, DATEFMT
  4047.            will default to the following:
  4048.  
  4049.                 DATEFMT=DMY/
  4050.  
  4051.            which  will    display  the  date    as    Day/Month/Year.  The
  4052.            following example will set the date to American format:
  4053.  
  4054.                 DATEFMT=MDY-
  4055.  
  4056.  
  4057.            DETAB
  4058.            Syntax: DETAB={ON|OFF}
  4059.  
  4060.            This statement  sets the  auto-detab flag on or off. When
  4061.            this feature  is on, NED automatically replaces hard-tabs
  4062.            with spaces when a file is read. If this statement is not
  4063.            included in    CONFIG.NED, DETAB  will default  to off. See
  4064.            the DETAB command in section 5.1 for further details.
  4065.  
  4066.  
  4067.            ENTAB
  4068.            Syntax: ENTAB={ON|OFF}
  4069.  
  4070.            This statement  sets the  auto-entab flag on or off. When
  4071.            this feature  is on,  NED automatically    replaces  spaces
  4072.            with hard  tabs when  a file  is written to disk. If this
  4073.            statement is  not  included    in    CONFIG.NED,  ENTAB    will
  4074.            default to  off. See  the NTAB command in section 5.1 for
  4075.            further details.
  4076.  
  4077.  
  4078.            FILE
  4079.            Syntax: FILE=pathname
  4080.  
  4081.            This statement specifies a file that will be loaded if no
  4082.            pathname or    File List  is specified  on the  DOS command
  4083.            line. This is useful if you are only working on one file.
  4084.  
  4085.            Saving CONFIG.NED  with CTRL  F4 will  assign the current
  4086.            filename to    this statement.  See section 5.2 for details
  4087.            on the CTRL F4 function.
  4088.            
  4089.            NED v1.7a User's Guide                            Page  75
  4090.  
  4091.  
  4092.            If this    statement is  not included    in CONFIG.NED and no
  4093.            pathname or File List is specified NED will return you to
  4094.            DOS with the following message:
  4095.  
  4096.                 err!:  no file to edit
  4097.                 usage: NED <filename|wildcard|@filename> <...>
  4098.  
  4099.  
  4100.            FIRSTCOL
  4101.            Syntax: FIRSTCOL={1|0}
  4102.  
  4103.            This statement  allows you to determine whether the first
  4104.            column of  a line  is displayed    as '0'    or '1'.  If this
  4105.            statement is  not included  in CONFIG.NED,  FIRSTCOL will
  4106.            default to column 1.
  4107.  
  4108.            This statement  is useful  for writing  screen layouts in
  4109.            languages where the first screen column is referred to as
  4110.            '0'. The  first column may be toggled with the ALT O key.
  4111.            See section 5.2 for details.
  4112.  
  4113.  
  4114.            GOTO
  4115.            Syntax: GOTO=line[,column]
  4116.  
  4117.            This statement  tells NED  to place    the  cursor  at  the
  4118.            specified line and optional column of the first file that
  4119.            is loaded.  This is    useful    if    you  are  working  on  a
  4120.            particular line    in a  large file.  Saving the CONFIG.NED
  4121.            with using  CTRL F4    will assign  the  current  line  and
  4122.            column to  this    statement.    If    this  statement  is  not
  4123.            included in    CONFIG.NED, GOTO  will default    to the first
  4124.            line and  column of the file. See section 5.1 for details
  4125.            on the  GOTO command.  Note that  if  you  have    set  the
  4126.            FIRSTCOL parameter  to '0',    and the  following statement
  4127.            appeared in CONFIG.NED:
  4128.  
  4129.                GOTO=1,1
  4130.  
  4131.            then the  cursor will  be placed  at the second column of
  4132.            line 1.
  4133.  
  4134.  
  4135.            HARDTAB
  4136.            Syntax: HARDTAB={ON|OFF}
  4137.  
  4138.            This statement  presets the hard-tab flag on or off. When
  4139.            this flag  is on  the TAB key inserts tab characters into
  4140.            the    file.    If    this   statement  is   not    included  in
  4141.            CONFIG.NED, HARDTAB    will default  to off.  See the ALT T
  4142.            function in section 5.2 for further details.
  4143.  
  4144.  
  4145.            INSERT
  4146.            Syntax: INSERT={ON|OFF}
  4147.  
  4148.            This statement  sets insert    on or  off. If it is on, NED
  4149.            
  4150.            NED v1.7a User's Guide                            Page  76
  4151.  
  4152.            will be in insert mode upon loading. If this statement is
  4153.            not included  in CONFIG.NED, NED will default to overtype
  4154.            mode. See section 5.2 for details on the INS key.
  4155.  
  4156.  
  4157.            INTENSITY
  4158.            Syntax: INTENSITY=boldcolour[,boldcolour]
  4159.  
  4160.            This statement allows you to set the bold colours used by
  4161.            NED. The  first parameter  sets the    bold  for  the    Edit
  4162.            window, the second optionally sets the bold attribute for
  4163.            the System  window. The    value of  boldcolour should be a
  4164.            number between  0 and  15. The  bold attribute is used to
  4165.            highlight  important   information  in    many  of   NED's
  4166.            functions such  as displaying  search finds    or showing a
  4167.            marker. The following example:
  4168.  
  4169.                 INTENSITY=12,15
  4170.  
  4171.            will set  the Edit  window intensity  to bold red and the
  4172.            System window  intensity to bold white. If this statement
  4173.            is not  included in CONFIG.NED, INTENSITY will default to
  4174.            the following settings:
  4175.  
  4176.                 INTENSITY=15,15
  4177.  
  4178.  
  4179.            INTERWORD
  4180.            Syntax: INTERWORD=char0[,char1...charN]
  4181.  
  4182.            This statement  presets the    interword delimiter  set. To
  4183.            include a space in the set you must embed it within other
  4184.            characters.    If     this  statement   is  not    included  in
  4185.            CONFIG.NED,    INTERWORD  will  default  to  a  space.  See
  4186.            section 5.1    for details  on the  INTERWORD command.  The
  4187.            following example:
  4188.  
  4189.                 INTERWORD=; ,:
  4190.  
  4191.            will set  the interword    delimiter set to a semi-colon, a
  4192.            space, a comma and a colon.
  4193.  
  4194.  
  4195.            MACROS
  4196.            Syntax: MACROS=macrofile
  4197.  
  4198.            This statement  tells NED  to load a predefined macrofile
  4199.            when starting  up. The  default extension is .MCR, so the
  4200.            extension need  not be  given. You  can    specify  a    full
  4201.            pathname for  the  macrofile.  See  the    USE  command  in
  4202.            section 5.1 for further details.
  4203.  
  4204.  
  4205.            LAYOUT
  4206.            Syntax: LAYOUT=length,topmargin,bottommargin[,leftmargin]
  4207.  
  4208.            This statement  sets the  print page  dimensions. If this
  4209.            statement is  not included  in  CONFIG.NED,    LAYOUT    will
  4210.            
  4211.            NED v1.7a User's Guide                            Page  77
  4212.  
  4213.            default to the following:
  4214.  
  4215.                 LAYOUT=66,3,3,0
  4216.  
  4217.            which sets  the page  length to    66 lines,  the    top  and
  4218.            bottom margins  to 3  lines and    the  left  margin  to  0
  4219.            characters. See    the YLAYOUT  command in  section 5.1 for
  4220.            details on page layouts.
  4221.  
  4222.  
  4223.            MAXLINES
  4224.            Syntax: MAXLINES=number
  4225.  
  4226.            This statement  sets the  maximum number  of lines a file
  4227.            may have.  This number  must be    between 1  and 10240. If
  4228.            this statement  is not  included in    CONFIG.NED, MAXLINES
  4229.            will default to 5120.
  4230.  
  4231.            If you  are only  working on small files say no more than
  4232.            1000 lines then the statement:
  4233.  
  4234.                 MAXLINES=1200
  4235.  
  4236.            will give  a considerable memory saving over the default.
  4237.            This is because all open areas are allocated room for the
  4238.            maximum number  of lines.  You can decrease the number of
  4239.            lines if  you find you are running out of memory. You can
  4240.            increase the  number of    lines if you wish to work on one
  4241.            large file.
  4242.  
  4243.  
  4244.            MODE
  4245.            Syntax: MODE={CGA|EGA|EGA43|HERC|MDA|VGA}
  4246.  
  4247.            This statement  tells NED  what type  of monitor  you are
  4248.            using. NED  determines whether  you are using an EGA, CGA
  4249.            or MDA monitor when loading. If, however, you are using a
  4250.            Hercules or a compatible monitor, MODE must be set to:
  4251.  
  4252.                MODE=HERC
  4253.  
  4254.            If you  have an EGA or VGA or compatible monitor, you may
  4255.            instruct NED  to load up in either 43 or 50 line modes by
  4256.            specifying one of the following statements:
  4257.  
  4258.                 MODE=EGA
  4259.                 MODE=EGA43
  4260.                 MODE=VGA
  4261.                 MODE=VGA50
  4262.  
  4263.            If this    statement is not included in CONFIG.NED, and NED
  4264.            cannot determine  the monitor  type, MODE will default to
  4265.            CGA.
  4266.  
  4267.  
  4268.            RULER
  4269.            Syntax: RULER={ON|OFF}
  4270.  
  4271.            
  4272.            NED v1.7a User's Guide                            Page  78
  4273.  
  4274.            This statement  tells NED  whether to  display the  ruler
  4275.            when NED  is loaded. ALT SPACE BAR also toggles the ruler
  4276.            on  or    off.  If  this    statement  is  not    included  in
  4277.            CONFIG.NED, the ruler will default to on. See section 2.2
  4278.            for details on the ruler.
  4279.  
  4280.  
  4281.            SNOW
  4282.            Syntax: SNOW={ON|OFF}
  4283.  
  4284.            This statement sets the display speed to synchronised for
  4285.            CGA or  fast for  MDA, HERC,  EGA and  VGA. When set off,
  4286.            screen writing  is synchronised with the retrace interval
  4287.            thus avoiding  SNOW on  the CGA. If this statement is not
  4288.            included in    CONFIG.NED, and you have a CGA monitor, SNOW
  4289.            will default  to off,  otherwise SNOW will default to on.
  4290.            See section 5.2 for details on the ALT - function.
  4291.  
  4292.  
  4293.            SORT
  4294.            Syntax: SORT={DIR|EXT|FILE|TIME|SIZE}
  4295.  
  4296.            This  statement    sets  the  type  of  sort  used  in  the
  4297.            directory window  of  the  File    Display  mode.    If    this
  4298.            statement  is  not  included  in  CONFIG.NED,  SORT    will
  4299.            default to DIR. See section 4.3 and 5.5 for more details.
  4300.  
  4301.  
  4302.            SPOOL
  4303.            Syntax: SPOOL={0|1}[,timeslice]
  4304.  
  4305.            This  statement    controls  NED's  print    while  you    work
  4306.            spooler. If    you specify '1' all printing will be sent to
  4307.            the    spooler  in  background.  If  you  specify    '0'  all
  4308.            printing will  be in  foreground. The  optional timeslice
  4309.            parameter  allows  you  to  adjust  the    amount    of    time
  4310.            allocated to  the foreground  (your keyboard usage). This
  4311.            value can be between 1 and 8192. The default timeslice is
  4312.            128. The  larger the  timeslice, the  less time    will  be
  4313.            allocated to  printing. If this statement is not included
  4314.            in CONFIG.NED, SPOOL will default to the following:
  4315.  
  4316.                 SPOOL=0,128
  4317.  
  4318.  
  4319.            STRIP
  4320.            Syntax: STRIP={ON|OFF}
  4321.  
  4322.            This statement  presets the    strip flag    on or  off. When
  4323.            this flag  is  on,  trailing  whitespace  characters  are
  4324.            stripped from the end of each line as the file is written
  4325.            to disk.  You may for some reason desire to have trailing
  4326.            whitespace characters preserved when the file is written.
  4327.            In this    case set  the flag    to off. If this statement is
  4328.            not included in CONFIG.NED, STRIP will default to on.
  4329.  
  4330.  
  4331.            TABSET
  4332.            
  4333.            NED v1.7a User's Guide                            Page  79
  4334.  
  4335.            Syntax: TABSET=column1[,column2...,columnN]
  4336.  
  4337.            This statement  sets the  tabstop template  to the values
  4338.            given. If you specify only one column parameter, tabs are
  4339.            set to  a width    of column-1  for the entire template. If
  4340.            more  than    one  column   is  given,  tabstops    are  set
  4341.            accordingly. The  difference between the last two columns
  4342.            is used    to set the remaining tabstops. If this statement
  4343.            is not included in CONFIG.NED, TABSET will default to the
  4344.            following:
  4345.  
  4346.                 TABSET=5
  4347.  
  4348.            See    the  TABSET  command  in  section  5.1    for  further
  4349.            details.
  4350.  
  4351.  
  4352.            WORDWRAP
  4353.            Syntax: WORDWRAP={0|1}[,rightmargin]
  4354.  
  4355.            This statement  controls NED's  word wrap  system. If you
  4356.            specify '1',  NED will start up with word wrap on. If you
  4357.            specify    '0'   word    wrap   will  be  off.  The    optional
  4358.            rightmargin parameter  allows you  to set  the right hand
  4359.            margin used with word wrap centre and right justify. This
  4360.            value can  be between 1 and 256. If this statement is not
  4361.            included in    CONFIG.NED, WORDWRAP  will    default  to  the
  4362.            following:
  4363.  
  4364.                 WORDWRAP=0,65
  4365.  
  4366.  
  4367.            
  4368.            NED v1.7a User's Guide                            Page  80
  4369.  
  4370.            *********************************************************
  4371.            NED v1.7a User's Guide
  4372.            Section 5.4      Block Mode Reference
  4373.  
  4374.            Introduction
  4375.            This section describes the keys that can be used in Block
  4376.            Mode described in section 3.4 above. Some keys compliment
  4377.            normal functions  keys that    operate on individual lines.
  4378.  
  4379.            UP/DOWN ARROWS  Previous/next line  These keys enlarge or
  4380.            shrink the  block over  the previous or next line. If you
  4381.            press UP  or DOWN on the first and last lines of the file
  4382.            respectively, NED will beep.
  4383.  
  4384.            PGUP/PGDN                              Previous/next page
  4385.  
  4386.            These keys  enlarge or shrink the block over the previous
  4387.            or next    page. These  keys will    have no  effect  at  the
  4388.            beginning or end of the file.
  4389.  
  4390.            CTRL HOME/CTRL END                      Top/bottom of file
  4391.  
  4392.            These keys  enlarge or shrink the block to the top or the
  4393.            bottom of the file.
  4394.  
  4395.            LEFT/RIGHT ARROWS                 Previous/next character
  4396.  
  4397.            These keys  work with intra-line blocks only. They expand
  4398.            or shrink the block to the previous or next character.
  4399.  
  4400.            CTRL LEFT/CTRL RIGHT                   Previous/next word
  4401.  
  4402.            These keys  work with intra-line blocks only. They expand
  4403.            or shrink the block to the previous or next word.
  4404.  
  4405.            HOME/END                                Start/end of line
  4406.  
  4407.            These keys work with intra-line blocks only. The HOME key
  4408.            expands the    block from    the cursor position to the start
  4409.            of the  line. The  END key  expands the    block  from  the
  4410.            cursor position    to the    end of    the line. If the current
  4411.            cursor position    is to the right of the starting position
  4412.            of the  cursor when you entered Block Mode (anchor point)
  4413.            and you    press HOME, the block will be resized so that it
  4414.            is bound by the new cursor position and the anchor point.
  4415.            The reverse applies for the END key.
  4416.  
  4417.            INS or +                                    Copy to scrap
  4418.  
  4419.            This key  copies the  block    to    the  scrap    buffer.  The
  4420.            original contents  of the  scrap buffer    is lost.  If the
  4421.            block was inter-line, NED displays the message:
  4422.  
  4423.                number lines copied to scrap
  4424.  
  4425.            After the block has been copied, you are returned to edit
  4426.            mode.
  4427.  
  4428.            
  4429.            NED v1.7a User's Guide                            Page  81
  4430.  
  4431.            DEL or -                                     Cut to scrap
  4432.  
  4433.            This key  cuts (deletes)  the block    to the scrap buffer.
  4434.            The original contents of the scrap buffer is lost. If the
  4435.            block was inter-line, NED displays the message:
  4436.  
  4437.                number lines cut to scrap
  4438.  
  4439.            After the  block has  been cut,    you are returned to edit
  4440.            mode.
  4441.  
  4442.            C                                          Centre justify
  4443.  
  4444.            This key centre justifies the block. Each line is centred
  4445.            separately. If  a line  is  less  than  or  equal  to  80
  4446.            characters in length it is centred over 80 characters. If
  4447.            it is longer, the line is centred over 256 characters. If
  4448.            word wrap  is on,  NED will    centre each  line using  the
  4449.            right hand margin if possible.
  4450.  
  4451.            L                                            Left justify
  4452.  
  4453.            This key left justifies the block. Each line is justified
  4454.            separately.
  4455.  
  4456.            R                                           Right justify
  4457.  
  4458.            This  key   right  justifies  the  block.  Each    line  is
  4459.            justified separately.  If a line is less than or equal to
  4460.            80  characters    in    length     it  is  justified    over  80
  4461.            characters. If  it is  longer, the line is justified over
  4462.            256 characters. If word wrap is on, NED will justify each
  4463.            line using the right hand margin if possible.
  4464.  
  4465.            S                                   Copy to search string
  4466.  
  4467.            This key works with intra-line blocks only. It copies the
  4468.            block to the search string. The original search string is
  4469.            lost. You  are returned    to edit  mode where you can then
  4470.            press
  4471.  
  4472.                F8/SHIFT F8/CTRL F8
  4473.  
  4474.            to begin searching. This  is a  short cut for the SPECIFY
  4475.            command.
  4476.  
  4477.            *                           Copy to last parameter string
  4478.  
  4479.            This key works with intra-line blocks only. It copies the
  4480.            block to  the last  Command mode  parameter    string.  The
  4481.            original last  parameter string is lost. You are returned
  4482.            to edit    mode where you can then enter Command mode (ESC)
  4483.            and press  F3  to  retrieve    the  string  for  your    next
  4484.            command.
  4485.  
  4486.            TAB/SHIFT TAB             Move block left/right a tabstop
  4487.  
  4488.            These keys  work with  inter-line blocks  only. They move
  4489.            
  4490.            NED v1.7a User's Guide                            Page  82
  4491.  
  4492.            the block  right or left one tabstop. The actual distance
  4493.            moved depends  on the  proximity  of  the  block  to  the
  4494.            nearest tabstop.
  4495.  
  4496.            If in  moving the  text, the line under or over flows, it
  4497.            will be    clipped or truncated accordingly. Therefore take
  4498.            care when  using SHIFT TAB as you cannot undo these keys.
  4499.            Once you  are satisfied    with the  position of the block,
  4500.            press ESC  to return to editing or issue one of the other
  4501.            Block Mode commands.
  4502.  
  4503.            SPACE BAR/BS                Move block left/right a space
  4504.  
  4505.            These keys  work with  inter-line blocks  only. They move
  4506.            the block  left or  right one  column. If  in moving  the
  4507.            text, the line under or over flows, it will be clipped or
  4508.            truncated accordingly.  Therefore take  care  when  using
  4509.            backspace as  you cannot  undo these  keys. Once  you are
  4510.            satisfied with  the position  of the  block, press ESC to
  4511.            return to  editing or  issue one  of the other Block Mode
  4512.            commands.
  4513.  
  4514.            F4                                   Enter/exit block mode
  4515.  
  4516.            F4 enters  or exits Block Mode. If you have only selected
  4517.            a block, pressing F4 will return you to edit mode with no
  4518.            changes. The  cursor will  be left  at the  start of  the
  4519.            block.
  4520.  
  4521.            ESC                                         Exit block mode
  4522.  
  4523.            ESC exits  block mode. If you have only selected a block,
  4524.            pressing ESC  will  return  you    to    edit  mode    with  no
  4525.            changes. The cursor will remain at the end of the block.
  4526.  
  4527.  
  4528.  
  4529.            
  4530.            NED v1.7a User's Guide                            Page  83
  4531.  
  4532.            *********************************************************
  4533.            NED v1.7a User's Guide
  4534.            Section 5.5      File Display Reference
  4535.  
  4536.            Introduction
  4537.            This section  describes the    keys available    in the    File
  4538.            Display mode.  This mode  can be used with the OPEN, USE,
  4539.            BACKUP, WRITE  and END commands. See section 4.3 for more
  4540.            details on using File Display mode.
  4541.  
  4542.            UP/DOWN ARROWS                          Previous/next file
  4543.  
  4544.            These keys  move the  selection bar    up or down in either
  4545.            the directory  window or  the File  List. Either  screens
  4546.            will scroll up or down if there are more entries than can
  4547.            be displayed in the current window.
  4548.  
  4549.            HOME/END                                  First/last file
  4550.  
  4551.            The    HOME/END   key    moves    the  selection    bar  to  the
  4552.            first/last entry  in either    the directory  window or the
  4553.            File List.
  4554.  
  4555.            PGUP/PGDN                              Previous/next page
  4556.  
  4557.            These keys  scroll the  directory  window  or  File    List
  4558.            window up or down one page.
  4559.  
  4560.            CTRL LEFT/CTRL RIGHT                   Previous/next file
  4561.  
  4562.            These keys move the selection bar to the previous or next
  4563.            entry in the directory window only.
  4564.  
  4565.            LEFT/RIGHT ARROWS                      Previous/next line
  4566.  
  4567.            These keys move the selection bar left or right one entry
  4568.            on the current line of directory window only.
  4569.  
  4570.            TAB                                       Move to File List
  4571.  
  4572.            This key  moves the    selection bar  between the directory
  4573.            window and  the File List. If there are no entries in the
  4574.            File List you will remain in the directory window.
  4575.  
  4576.            INSERT (INS)                            Copy file to list
  4577.  
  4578.            This key  works in  the directory  window only. It copies
  4579.            the currently selected entry to the end of the File List.
  4580.            If the  entry is a '.' or a '\' then all the entries from
  4581.            the directory are copied to the end of the File List.
  4582.  
  4583.            DELETE (DEL)                        Delete file from list
  4584.  
  4585.            This key  works in  the File  List only.  It deletes  the
  4586.            currently selected  entry. If it is the only entry in the
  4587.            list you will be moved over to the directory window.
  4588.  
  4589.            CTRL K                                         Delete list
  4590.            
  4591.            NED v1.7a User's Guide                            Page  84
  4592.  
  4593.  
  4594.            This key  works in the File List only. It deletes all the
  4595.            entries in  the list.  You will then be moved over to the
  4596.            directory window.
  4597.  
  4598.            CTRL F4                                          Write list
  4599.  
  4600.            This key  works in  the File  List only.  It  writes  the
  4601.            current File List to FILES.NED.
  4602.  
  4603.            ENTER                                         Select file
  4604.  
  4605.            This key  returns the  currently selected  file from  the
  4606.            directory window  or the  File List to which ever command
  4607.            was used  to enter File Display mode. This is most likely
  4608.            to be  a file to open with the OPEN command. If the entry
  4609.            is a  subdirectory or  a drive  (in the directory window)
  4610.            then NED  will change  to  the  drive  or  directory  and
  4611.            display its    contents. When    using File    Display with the
  4612.            BACKUP command,    only drives  and subdirectory  names are
  4613.            displayed. To  return a    directory to  the BACKUP command
  4614.            use CTRL ENTER.
  4615.  
  4616.            ESCAPE                                   Exit file display
  4617.  
  4618.            This key  aborts File Display mode and returns you to the
  4619.            command area.
  4620.  
  4621.            ALT D,T,F,S,X                              Sort directory
  4622.  
  4623.            These keys  sort the  entries in  the directory window as
  4624.            follows:
  4625.  
  4626.                D    Directory order
  4627.                F    Alphabetically
  4628.                S    File size
  4629.                T    Time/date
  4630.                X    Extension
  4631.  
  4632.            NED remembers  the  sort  used  when  you  re-enter    File
  4633.            Display mode.  The  default    sort  type    can  be  set  in
  4634.            CONFIG.NED with    the SORT  statement. See section 5.3 for
  4635.            details.
  4636.  
  4637.  
  4638.  
  4639.            
  4640.            NED v1.7a User's Guide                            Page  85
  4641.  
  4642.            *********************************************************
  4643.            NED v1.7a User's Guide
  4644.            Section 5.6      Regular Expression Reference
  4645.  
  4646.            Introduction
  4647.            This section  describes the    Regular Expression    Language
  4648.            used with  the SPECIFY  command. See section 5.1 for more
  4649.            details on this command. Regular expressions are a way of
  4650.            representing text  patterns in  a symbolic shorthand. The
  4651.            symbols used  to define    these expressions fall into five
  4652.            categories:
  4653.  
  4654.            Symbols that match a specific character
  4655.            Symbols that match any character
  4656.            Symbols that match a character's position on the line
  4657.            Symbols that match any of a set of characters or anything
  4658.            except a set of characters
  4659.            Symbols that let you match the previous symbol any number
  4660.            of times
  4661.  
  4662.            An expression  may be  made up of any or all of the above
  4663.            categories.
  4664.  
  4665.            CARAT (^)                                      Start line
  4666.  
  4667.            This symbol    matches any text at the beginning of a line.
  4668.            For example:
  4669.  
  4670.                 ^cat
  4671.  
  4672.            will match  the string "cat" only if it is located at the
  4673.            beginning of a line so that:
  4674.  
  4675.                 the cat
  4676.  
  4677.            would not be matched.
  4678.  
  4679.            DOLLAR ($)                                        End line
  4680.  
  4681.            This symbol    matches any  text at  the end of a line. For
  4682.            example:
  4683.  
  4684.                 cat$
  4685.  
  4686.            will match  the string "cat" only if it is located at the
  4687.            end of a line so that:
  4688.  
  4689.                 cat nap
  4690.  
  4691.            would not be matched.
  4692.  
  4693.            PERIOD (.)                                   Any character
  4694.  
  4695.            This symbol    matches any  one character.  Generally    this
  4696.            symbol by  itself will  always find    a match.  Its use is
  4697.            usually as a placeholder. For example:
  4698.  
  4699.                 c.t
  4700.            
  4701.            NED v1.7a User's Guide                            Page  86
  4702.  
  4703.  
  4704.            will match:
  4705.  
  4706.                 cat, cot, cut
  4707.  
  4708.            but will not match:
  4709.  
  4710.                 coot, coat or couch etc.
  4711.  
  4712.            ASTERISK (*)                        Match last expression
  4713.  
  4714.            This symbol matches zero or more matches of the preceding
  4715.            expression. For example:
  4716.  
  4717.                 c.*t
  4718.  
  4719.            will match:
  4720.  
  4721.                 cat, coat, chart, compliment
  4722.  
  4723.            Here the  preceding expression  is the  period. Therefore
  4724.            NED searches for any word starting with 'c' and ending in
  4725.            't'.
  4726.  
  4727.            SQUARE BRACKETS ([])                      Character class
  4728.  
  4729.            The square brackets define a set of characters known as a
  4730.            character class.  NED will  then match  any character  in
  4731.            that  set.    Character  classes     are  usually    used  in
  4732.            conjunction with other language elements. For example:
  4733.  
  4734.                 c[aou]t
  4735.  
  4736.            will match:
  4737.  
  4738.                 cat, cot, cut
  4739.  
  4740.            but will not match:
  4741.  
  4742.                 cet, cit, cyt
  4743.  
  4744.            If the  first character    in the    brackets is  a carat (^)
  4745.            then  patterns  with  characters  not  appearing  in  the
  4746.            brackets will be searched for. For example:
  4747.  
  4748.                 c[^aou]t
  4749.  
  4750.            will not match:
  4751.  
  4752.                 cat, cot, cut
  4753.  
  4754.            but will match:
  4755.  
  4756.                 cit, cet, cft, czt
  4757.  
  4758.            The brackets  may also  be used    to specify ASCII ordered
  4759.            ranges by specifying the beginning and end of the range.
  4760.            For example:
  4761.            
  4762.            NED v1.7a User's Guide                            Page  87
  4763.  
  4764.  
  4765.                 c[a-z][A-Z]t
  4766.  
  4767.            matches any upper or lower case letter so that:
  4768.  
  4769.                 cat,cIt,crt,cGt
  4770.  
  4771.            will all be matched.
  4772.  
  4773.            SPECIAL CHARACTERS
  4774.  
  4775.            The regular    expression language allows you to search for
  4776.            the following special characters:
  4777.  
  4778.                 \t     tab
  4779.                 \s     space
  4780.                 \b     backspace
  4781.  
  4782.            The backslash  tells NED  that the character that follows
  4783.            is to  be treated  literally except    with the above three
  4784.            characters. Therefore  to search  for characters  used in
  4785.            the language, prefix them with the backslash as follows:
  4786.  
  4787.                 \\     backslash
  4788.                 \*     asterisk
  4789.                 \.     period
  4790.                 \^     carat
  4791.                 \[     left bracket
  4792.                 \]     right bracket
  4793.                 \$     dollar
  4794.  
  4795.            for example:
  4796.  
  4797.                 if\snot\s\[\*2\]
  4798.  
  4799.            will match:
  4800.  
  4801.                 if not [*2]
  4802.  
  4803.            EXAMPLES
  4804.  
  4805.            You can    form many  expressions using  the language. Here
  4806.            are a few examples:
  4807.  
  4808.                 [a-z][a-z]*ism
  4809.  
  4810.            Matches any    'ism' word e.g. 'prism'. In this example you
  4811.            must repeat    the character  class range twice to match it
  4812.            any number of times.
  4813.  
  4814.                 /\*.*\*/
  4815.  
  4816.            Matches any    comment line in a C program, for example: /*
  4817.            this is a comment */
  4818.  
  4819.            will be matched.
  4820.  
  4821.                 ^[\s\t]*REM.*$
  4822.            
  4823.            NED v1.7a User's Guide                            Page  88
  4824.  
  4825.  
  4826.            Matches any comment line in a BASIC program.
  4827.            The following expression:
  4828.  
  4829.                 ^[a-z][a-z]*[\s\t]*.*([^;]*)[^;]*$
  4830.  
  4831.            will find  any C function declaration with function body.
  4832.            The expression  searches for  beginning    of    a  line  (^)
  4833.            followed by    one or    more occurrences of any character in
  4834.            the range a to z ([a-z][a-z]*) followed by either a space
  4835.            or a  tab repeated zero or more times ([\s\t]*), followed
  4836.            by any  character  repeated    zero  or  more    times  (.*),
  4837.            followed by    an open  parenthesis  (()  followed  by  any
  4838.            character except a semi-colon repeated zero or more times
  4839.            ([^;]*), followed by a close parenthesis ()), followed by
  4840.            any character  except a    semi-colon repeated zero or more
  4841.            times ([^;]*)  followed    by    an    end  of  line  ($).  For
  4842.            example, the above expression would match:
  4843.  
  4844.                 WINDOW *get_window(int start,int finish,char *store)
  4845.  
  4846.            but not match:
  4847.  
  4848.                 WINDOW *get_window (int, int, char *);
  4849.  
  4850.            The above  example only    matches 'C'  function bodies and
  4851.            not function  prototypes. It  is useful    for compiling  a
  4852.            cross-reference of  all of  the functions in a module. As
  4853.            you can    see expressions  can  be  very    complicated  yet
  4854.            extremely powerful filters can be created.
  4855.  
  4856.  
  4857.  
  4858.            
  4859.            NED v1.7a User's Guide                            Page  89
  4860.  
  4861.            *********************************************************
  4862.            NED v1.7a User's Guide
  4863.            Section 5.7      Printer Command Reference
  4864.  
  4865.            Introduction
  4866.            This  section  outlines    the  embedded  printer    commands
  4867.            described in  sections 4.5 and 5.1. The syntax of a print
  4868.            command line is as follows:
  4869.  
  4870.                .prncmd[.prncmd]...
  4871.  
  4872.            A print    command line  must    begin  with  a    period    '.',
  4873.            followed by    the command.  You may  issue more  than  one
  4874.            print command  on each  line by    separating each  command
  4875.            with a period.
  4876.  
  4877.            BOLDFACE
  4878.            Commands: bf, bo
  4879.  
  4880.            These  commands    instruct  the  printer    to    switch    bold
  4881.            printing on    or off.  'bf' will turn bold printing on and
  4882.            'bo' will turn it off.
  4883.  
  4884.            IGNORE PAPER OUT
  4885.            Commands: pf, po
  4886.  
  4887.            These commands  instruct the printer to ignore or respond
  4888.            to the  paper out  sensor. 'pf'    will tell the printer to
  4889.            ignore the  paper out  sensor  and  'po'  will  tell  the
  4890.            printer to respond to it.
  4891.  
  4892.            ENHANCED
  4893.            Commands: hf, ho
  4894.  
  4895.            These commands  instruct the  printer to  switch enhanced
  4896.            printing on    or off.  'hf' will turn enhanced printing on
  4897.            and 'ho' will turn it off.
  4898.  
  4899.            SUPERSCRIPT
  4900.            Commands: su, so
  4901.  
  4902.            These commands instruct the printer to switch superscript
  4903.            printing on    or off.  'su' will turn superscript printing
  4904.            on and 'so' will turn it off.
  4905.  
  4906.            SUBSCRIPT
  4907.            Commands: sb, so
  4908.  
  4909.            These commands  instruct the  printer to switch subscript
  4910.            printing on    or off. 'sb' will turn subscript printing on
  4911.            and 'so' will turn it off.
  4912.  
  4913.            FORM FEED
  4914.            Commands: ff, fo
  4915.  
  4916.            The 'ff' command instructs the printer not to send a form
  4917.            feed when  it has  finished printing.  'fo'    enables  the
  4918.            sending of  a form feed when finished printing. Note that
  4919.            
  4920.            NED v1.7a User's Guide                            Page  90
  4921.  
  4922.            issuing a  'fo' command    after a 'ff' command in the same
  4923.            file will  have no  effect. Where  this is  useful is  to
  4924.            concatenate two    print files  together.    Issue  the    'ff'
  4925.            command in the first file and 'fo' in the second.
  4926.  
  4927.            UNDERLINE
  4928.            Commands: ul, uo
  4929.  
  4930.            These commands  instruct the  printer to switch underline
  4931.            printing on    or off. 'ul' will turn underline printing on
  4932.            and 'uo' will turn it off.
  4933.  
  4934.            ELONGATED
  4935.            Commands: lf, lo
  4936.  
  4937.            These commands  instruct the  printer to switch elongated
  4938.            printing on    or off. 'lf' will turn elongated printing on
  4939.            and 'lo' will turn it off.
  4940.  
  4941.            CONDENSED
  4942.            Commands: cf, co
  4943.  
  4944.            These commands  instruct the  printer to switch condensed
  4945.            printing on    or off. 'cf' will turn condensed printing on
  4946.            and 'co' will turn it off.
  4947.  
  4948.            LINES PER INCH
  4949.            Commands: ia, ib, io
  4950.  
  4951.            These commands  instruct the  printer to  change the line
  4952.            spacing. 'ia'  sets line  spacing to  1/8 inch. 'ib' sets
  4953.            line spacing  to 7/72  inch (often 13/120). 'io' sets the
  4954.            line spacing to 1/6 inch which is usually the default.
  4955.  
  4956.            ESCAPE SEQUENCES
  4957.            Command: esequence
  4958.  
  4959.            This command  allows you  to send escape sequences to the
  4960.            printer. It    must be  either the only or the last command
  4961.            on a  print command    line. When    NED recognizes an escape
  4962.            sequence command  it  sends    an    escape    character  (1Bh)
  4963.            followed by the remaining characters on the line.
  4964.  
  4965.                .e@
  4966.  
  4967.            resets an Epson FX type printer
  4968.  
  4969.                .e50
  4970.  
  4971.            enables auto line feed on an IBM graphics printer.
  4972.  
  4973.            EXAMPLES
  4974.  
  4975.            The following is an example of using the printer
  4976.            commands.
  4977.  
  4978.                .bf.hf.ul
  4979.                The Rain In Spain
  4980.            
  4981.            NED v1.7a User's Guide                            Page  91
  4982.  
  4983.                .uo
  4984.                Stays mainly on the Plain.
  4985.                .bo.ho.e@
  4986.  
  4987.            The above sets bold on, enhanced on and underline on then
  4988.            prints 'The    Rain...'. It  then turns  underline off  and
  4989.            prints  'Stays    mainly...'.  It  then  turns  bold    off,
  4990.            enhanced off and resets the printer.
  4991.  
  4992.            INLINE PRINTER COMMANDS
  4993.  
  4994.            You can    insert your  own printer  commands directly into
  4995.            your file  by using    CTRL ESC  and Shift  In (chr 14) and
  4996.            Shift Out (chr 15). For example:
  4997.  
  4998.                The rain in <Ctrl Esc>GSpain<Ctrl Esc>H stays mainly
  4999.                on the plain.
  5000.  
  5001.            When printed on an Epson FX, will appear as:
  5002.  
  5003.                The rain in Spain stays mainly on the plain.
  5004.  
  5005.            On an  HP LaserJet,    Shift In  and Shift  Out select  the
  5006.            primary and secondary fonts respectively. For example, if
  5007.            the primary    font is  Courier and  the secondary  font is
  5008.            Courier bold the following line:
  5009.  
  5010.                The rain in <Alt 15>Spain<Alt 14> stays mainly on
  5011.                the plain.
  5012.  
  5013.            When printed on an HP LaserJet, will appear as:
  5014.  
  5015.                The rain in Spain stays mainly on the plain.
  5016.  
  5017.            In this    example, to  generate the Shift In and Shift Out
  5018.            characters, hold  down the  ALT key    and type 14 or 15 on
  5019.            the numeric keypad.
  5020.  
  5021.  
  5022.  
  5023.            
  5024.            NED v1.7a User's Guide                            Page  92
  5025.  
  5026.            *********************************************************
  5027.            NED v1.7a User's Guide
  5028.            Chapter 6. Tutorials
  5029.  
  5030.            6.1 Introduction
  5031.            These tutorials are designed to assist you to become more
  5032.            familiar with  NED. They introduce the main skills needed
  5033.            to operate NED effectively.
  5034.  
  5035.            You should have read Chapter 1 before you start here. You
  5036.            may find  it useful    to read  Chapters 2  and 3    prior to
  5037.            starting these tutorials to familiarize yourself with the
  5038.            range of  commands available.  It  is  assumed  you    have
  5039.            installed NED  correctly and  that the  system files  are
  5040.            either in  the current  directory or  on  the  PATH.  See
  5041.            section 1.2 for details on installing NED.
  5042.  
  5043.            In the  tutorials, special keys such as SHIFT F2 or ALT F
  5044.            will be    surrounded by  angle  brackets.  Characters  not
  5045.            surrounded by  angle brackets  should be typed literally.
  5046.            Also make  sure you press ENTER only when specified.
  5047.  
  5048.            6.2 Tutorial One - A DOS  menu system This  tutorial will
  5049.            guide you through the creation of a simple DOS batch menu
  5050.            system.    We     will  create  this  system  in  a    separate
  5051.            subdirectory so    as not    to interfere  with any    existing
  5052.            batch files.  Firstly enter    the following command at the
  5053.            DOS prompt:
  5054.  
  5055.                 md \nedtut<Enter>
  5056.  
  5057.            If the message:
  5058.  
  5059.                 Unable to create directory
  5060.  
  5061.            was displayed, then enter the following:
  5062.  
  5063.                 del \nedtut<Enter>
  5064.                 y<Enter>
  5065.  
  5066.            to remove  any  existing  files.  Regardless,  enter  the
  5067.            following command:
  5068.  
  5069.                 cd \nedtut<Enter>
  5070.  
  5071.            Creating the menu files
  5072.            Now at the DOS prompt enter the following command:
  5073.  
  5074.                 ned menu.bat menu.txt<Enter>
  5075.  
  5076.            As NED  loads it  will copy    the two  filenames from  the
  5077.            command line  to the  File List, then NED will attempt to
  5078.            open 'menu.bat'    (the first    file  in  the  list).  Since
  5079.            'menu.bat' does not exist, NED will prompt you to confirm
  5080.            its creation.  Press 'y'  to proceed.  NED  displays  the
  5081.            following message:
  5082.  
  5083.                 (new file)
  5084.            
  5085.            NED v1.7a User's Guide                            Page  93
  5086.  
  5087.  
  5088.            Now enter the following:
  5089.  
  5090.                 echop<Left><Del><space bar>off<Enter>
  5091.  
  5092.            The obvious    typing error  is  corrected  by  moving  the
  5093.            cursor left    with the LEFT arrow and pressing the DEL key
  5094.            to remove the 'p' in 'echop'. Now enter the following:
  5095.  
  5096.                 cls<Enter>
  5097.                 type \tut\menu.txt
  5098.  
  5099.            These lines    are the commands to display the menu screen,
  5100.            which you will create shortly. Note that the ENTER key is
  5101.            needed to  open up  a new blank line. Before we continue,
  5102.            there is  one more  error to correct. The pathname of the
  5103.            menu text  file should  be '\nedtut\menu.txt'. To correct
  5104.            it, press the following keys:
  5105.  
  5106.                 <Home><Ctrl Right><Right>
  5107.  
  5108.            which moves    the cursor    to the    beginning of  the  line,
  5109.            moves to  the second character of the next word. Next you
  5110.            need to ensure that you are in insert mode. If the cursor
  5111.            appears as  a quarter  block you are in overtype mode, so
  5112.            press INS to change to insert mode. If the cursor appears
  5113.            as a  half block you are already in insert mode. Now type
  5114.            the following to correct the pathname:
  5115.  
  5116.                 ned
  5117.  
  5118.            Now to save this file, enter the following:
  5119.  
  5120.                 <Esc>W<Enter>
  5121.  
  5122.            which takes    you into  Command mode    and issues the WRITE
  5123.            command. NED displays the message:
  5124.  
  5125.                 3 lines written
  5126.  
  5127.            the file  is left  open and you are left in Command mode.
  5128.            The next  step is  to create  the menu  screen. Type  the
  5129.            following:
  5130.  
  5131.                 O<Enter>
  5132.  
  5133.            As for  'menu.bat' above,  you will    have to  confirm the
  5134.            creation of    'menu.txt' by  pressing 'y'  when  prompted.
  5135.            Exit Command  mode and  return  to  the    Edit  window  by
  5136.            pressing the  ESC key.  You now    need to  ensure that the
  5137.            Auto-indent feature    is set on. The status of Auto-indent
  5138.            is displayed on the top line of the screen between memory
  5139.            free %  and the    line counter. If on, 'I' appears in bold
  5140.            attribute if  off, it  will be in normal attribute. Press
  5141.            ALT I  if it is off. Turn the CAPS LOCK on, the status of
  5142.            which is  displayed by the 'C' character in the same area
  5143.            as the Auto-indent flag. Now type the following:
  5144.  
  5145.            
  5146.            NED v1.7a User's Guide                            Page  94
  5147.  
  5148.                 S Y S T E M   M E N U<Alt C><Enter>
  5149.  
  5150.            Note that a space should be typed between each letter and
  5151.            three spaces between the two words. ALT C will centre the
  5152.            line, and ENTER will open a new line below.
  5153.  
  5154.            Next,  we  will    underline  the    menu  title.  Enter  the
  5155.            following:
  5156.  
  5157.                 <Esc>F=,21<Ctrl Enter>
  5158.  
  5159.            This instructs  NED    to    fill  from    the  current  cursor
  5160.            position with  21 '='  characters.  The    CTRL  ENTER  key
  5161.            returns you    directly to  the Edit  window. Insert  three
  5162.            blank lines by pressing ENTER three times, then enter the
  5163.            following line:
  5164.  
  5165.                 1 - DISPLAY DIRECTORY TREE<Alt C><Enter>
  5166.  
  5167.            As above,  this line  will be  centred  and    a  new    line
  5168.            opened. On the new line type the following:
  5169.  
  5170.                 2 -<Space bar>
  5171.  
  5172.            We have    inserted space    bar since  we  want  a    trailing
  5173.            space. Then    press ALT F seven times. Each time you press
  5174.            ALT F  a character  from the  line above is copied to the
  5175.            cursor position    and the  cursor is    moved to  the right.
  5176.            This saves  you from having to retype 'DISPLAY'. Now type
  5177.            the following:
  5178.  
  5179.                 <Space bar>CHKDSK INFO
  5180.  
  5181.            Then press:
  5182.  
  5183.                 <Ctrl F3><F2><Ctrl Right>
  5184.  
  5185.            which takes    a copy of the current line, inserts the copy
  5186.            below the  current line,  and then moves to the beginning
  5187.            of the first word on the new line.
  5188.  
  5189.            We will    now edit this new line to create your third menu
  5190.            option. Press  the INS  key to  change to  overtype mode,
  5191.            type '3'  to replace the '2' at the beginning of the line
  5192.            and press  CTRL RIGHT three times. This will position you
  5193.            at the beginning of the word 'CHKDSK'. Now press ALT D to
  5194.            delete the remainder of the line and then type:
  5195.  
  5196.                 DOS ENVIRONMENT<Enter><Enter><Enter>
  5197.  
  5198.            which will  complete the  third menu  option and  open up
  5199.            three blank    lines below.  Now type the menu instructions
  5200.            as follows:
  5201.  
  5202.                 ENTER THE NUMBER FOR THE OPTION YOU WANT
  5203.                 <Alt C><Enter>
  5204.                 OR ENTER "MENU" TO REDISPLAY THIS SCREEN
  5205.                 <Enter>
  5206.            
  5207.            NED v1.7a User's Guide                            Page  95
  5208.  
  5209.  
  5210.            This completes  the entry  of the  screen text,    which we
  5211.            will now finish formatting. Press the following:
  5212.  
  5213.                 <Ctrl Home><Down><Down><Down><Down><Enter>
  5214.  
  5215.            Which will  take you  to the  top of  the file,    move the
  5216.            cursor down    to the    first menu option and insert a blank
  5217.            line between the first and second menu options. Now press
  5218.            the following:
  5219.  
  5220.                 <Down><Enter><Down><Down><Down><Down>
  5221.  
  5222.            which inserts  a blank  line between the second and third
  5223.            menu  options   and    moves    the  cursor   to  the    menu
  5224.            instructions. Press the following keys:
  5225.  
  5226.                 <Alt G><Home><Alt M>
  5227.  
  5228.            to convert  the line  to lower case, move to the start of
  5229.            the line  and flip the case of the 'e' in 'enter' to 'E'.
  5230.            Now press:
  5231.  
  5232.                 <Down><Alt G><Ctrl Right><Ctrl Right><Right>
  5233.  
  5234.            which moves you to the second instruction line, flips its
  5235.            case and  moves the  cursor to  the 'm' of '"menu"'. Then
  5236.            press ALT M four times to change 'menu' to uppercase. The
  5237.            screen should now look like the following:
  5238.  
  5239.                             S Y S T E M   M E N U
  5240.                             =====================
  5241.  
  5242.  
  5243.                           1 - DISPLAY DIRECTORY TREE
  5244.                           2 - DISPLAY CHKDSK INFO
  5245.                           3 - DISPLAY DOS ENVIRONMENT
  5246.  
  5247.  
  5248.                     Enter the number for the option you want
  5249.                    or enter 'MENU' to redisplay this screen
  5250.  
  5251.            This finishes your menu screen. To save your work to disk
  5252.            press:
  5253.  
  5254.                 <Shift F10>
  5255.  
  5256.            This is    a  shortcut  for  the  WRITE  command  you    used
  5257.            earlier. NED should display the message:
  5258.  
  5259.                 14 lines written
  5260.  
  5261.            Creating the option files
  5262.            We now want to create a batch file for each option in the
  5263.            menu. To do this, press the following keys:
  5264.  
  5265.                 <Alt 1><Ctrl Home><F4><Down><Ins>
  5266.  
  5267.            
  5268.            NED v1.7a User's Guide                            Page  96
  5269.  
  5270.            This  changes  you  to  the    first  area  which    contains
  5271.            'menu.bat'. ALT    0 to  9 are  shortcut keys    to change to
  5272.            another area  and   'menu.bat' is  in area  1. This    then
  5273.            moves the  cursor to  the first    line, enters Block Mode,
  5274.            expands the    block to  cover the  first two    lines,    then
  5275.            copies the  block to  the scrap    buffer and    exits  Block
  5276.            Mode.
  5277.  
  5278.            Your first  option file    will be  called '1.bat'. Use the
  5279.            OPEN command to create it as follows:
  5280.  
  5281.                 <Esc>O1.bat<Enter>y<Esc>
  5282.  
  5283.            We will    use the contents of the scrap buffer to form the
  5284.            basis of the first option file. Press the following keys:
  5285.  
  5286.                 <F2><Shift F2>
  5287.  
  5288.            which inserts  a copy  of  the  scrap  buffer  below  the
  5289.            current    line   and     then    deletes   the    blank    line
  5290.            automatically inserted  by NED when the file was created.
  5291.  
  5292.            We now  want to    finish the    option file  by  adding  the
  5293.            command to display the DOS tree and then to redisplay the
  5294.            menu text. Press the following:
  5295.  
  5296.                 <Ctrl End><Enter><Caps Lock>
  5297.  
  5298.            to move    to the    end of    the file  and open a blank line,
  5299.            turn the Caps Lock off. Now type the following:
  5300.  
  5301.                 wis . | more<Enter>
  5302.                 menu
  5303.  
  5304.            We will    now use  this file    as the    basis of  '2.bat' by
  5305.            pressing the following:
  5306.  
  5307.                 <F4><Ctrl Home><Ins>
  5308.  
  5309.            To create  '2.bat' we  will use the same procedure as you
  5310.            used with '1.bat', by typing:
  5311.  
  5312.                 <Esc>O2.bat<Enter>y<Esc>
  5313.                 <F2><Shift F2>
  5314.  
  5315.            We now  want to    finish this option file by replacing the
  5316.            'wis'  command  with  the  'chkdsk'    command.  Press  the
  5317.            following:
  5318.  
  5319.                 <Down><Down><Alt K>
  5320.  
  5321.            These keys  move the  cursor to the third line and remove
  5322.            its contents. Now type:
  5323.  
  5324.                 chkdsk /f *.* | more
  5325.  
  5326.            As with    this the  last file, we will create the basis of
  5327.            '3.bat' with '2.bat'. Press the following:
  5328.            
  5329.            NED v1.7a User's Guide                            Page  97
  5330.  
  5331.  
  5332.                 <Ctrl Home><F4><Ctrl End><Ins>
  5333.                 <Esc>O3.bat<Enter>y<Esc>
  5334.                 <F2><Shift F2>
  5335.  
  5336.            To finish  this option  file we will replace the 'chkdsk'
  5337.            command with the 'set' command. Press the following:
  5338.  
  5339.                 <Down><Down><Alt K>set
  5340.  
  5341.            You now    have five open files. The Status screen helps to
  5342.            keep track  of open files. Press F10 to view this screen.
  5343.            Note that  the option  batch files have a flashing 'Y' in
  5344.            the 'Changes'  column.  The    Status    screen    should    look
  5345.            something like the following:
  5346.  
  5347.            Area File Name  Size Lines         Last Write      Changes
  5348.  
  5349.              1     MENU.BAT     39     3  20/07/1989 at 12:15           N
  5350.              2     MENU.TXT     406   14  20/07/1989 at 12:23           N
  5351.              3     1.BAT                5         (new file)            Y
  5352.              4     2.BAT                5         (new file)            Y
  5353.            > 5     3.BAT                5         (new file)            Y
  5354.              6     (area unopened)
  5355.              7     (area unopened)
  5356.              8     (area unopened)
  5357.              9     (area unopened)
  5358.              10  (area unopened)
  5359.  
  5360.            Press any  key to return to the current file. To save the
  5361.            files that  have changed,  use  the    LAUNDRY  command  as
  5362.            follows:
  5363.  
  5364.                 <Esc>L<Enter>
  5365.  
  5366.            You might  like to have another look at the Status screen
  5367.            to check  that  all    changed  files    have  been    written.
  5368.  
  5369.            Testing the menu system
  5370.            We now  want to test the menu system. To do this you will
  5371.            have to    return to  DOS. Since  we are already in Command
  5372.            mode, enter the following:
  5373.  
  5374.                 Q<Enter>
  5375.  
  5376.            Now at the DOS prompt type:
  5377.  
  5378.                 menu<Enter>
  5379.  
  5380.            which will display the menu text. To run the first option
  5381.            type:
  5382.  
  5383.                 1<enter>
  5384.  
  5385.            You    will  no  doubt  see  that    the  directory    tree  is
  5386.            immediately replaced  by  the  menu    text.  To  fix    this
  5387.            problem, we will have to edit our batch files. Reload NED
  5388.            as follows:
  5389.            
  5390.            NED v1.7a User's Guide                            Page  98
  5391.  
  5392.                 ned *.bat<Enter>
  5393.  
  5394.            NED expands    and sorts the filenames matching the '*.bat'
  5395.            wildcard into  the File    List. NED  then opens  the first
  5396.            file in    the list  which will  be '1.bat'.  Now type  the
  5397.            following:
  5398.  
  5399.                 <Down><Down><Enter>pause
  5400.  
  5401.            to  insert    the  'pause'   statement  under   the  'wis'
  5402.            statement.
  5403.  
  5404.            We need    to insert this command in the other option batch
  5405.            files. Copy    the current  line to  the  scrap  buffer  by
  5406.            pressing CTRL  F3.  Because    we    know  that    the  'pause'
  5407.            command needs  to be  inserted at  the same    place in the
  5408.            remaining  option   batch  files,   we  can     record  the
  5409.            keystrokes used for the second option file to a macro. We
  5410.            will then  only need to press the macro key to repeat the
  5411.            keystrokes for the third option file. Press the following
  5412.            keys:
  5413.  
  5414.                 <F7><Alt F1>
  5415.  
  5416.            which begins recording keystrokes to ALT F1. NED displays
  5417.            the message:
  5418.  
  5419.                 Recording (ALT F1)
  5420.  
  5421.            Now press:
  5422.  
  5423.                 <Ctrl F1><Down><Down><F2>
  5424.  
  5425.            to open    the next  file in  the File  List which  will be
  5426.            '2.bat', and insert scrap buffer under the third line. To
  5427.            finish recording  the macro,  press F7.    NED displays the
  5428.            message:
  5429.  
  5430.                 End Record (ALT F1)
  5431.  
  5432.            Now we  can use    the   macro to    update the    third option
  5433.            file. Press    ALT F1 and the 'pause' command will be added
  5434.            to '3.bat'!    To test these changes, we will save and quit
  5435.            NED by  using the  's' parameter  with the QUIT command
  5436.            as
  5437.            follows:
  5438.  
  5439.                 <Esc>Qs<Enter>
  5440.  
  5441.            At the DOS prompt type:
  5442.  
  5443.                 menu<Enter>
  5444.                 1<Enter>
  5445.  
  5446.            When the  command has  finished, you  will  be  asked  to
  5447.            strike any key when ready. When you strike a key the menu
  5448.            text will  be displayed.  Test the  other options  if you
  5449.            wish.
  5450.            
  5451.            NED v1.7a User's Guide                            Page  99
  5452.  
  5453.  
  5454.            That completes  Tutorial One.  To learn    more  about  NED
  5455.            proceed to the next tutorial.
  5456.  
  5457.            6.3 Tutorial Two - Programming with NED
  5458.            This tutorial  will show  you more of NED's capabilities,
  5459.            particularly  those    that  assist  with    the  writing  of
  5460.            computer programs.  We have chosen the BASIC language for
  5461.            the examples  in this  tutorial since  it is  the    most
  5462.            widely understood  language. If you have not been through
  5463.            the first  tutorial then you will not be able to complete
  5464.            this tutorial  as you  will need to use 'menu.txt'. Enter
  5465.            the following to remove the tutorial file:
  5466.  
  5467.                 del \nedtut\sample.bas<Enter>
  5468.  
  5469.            If the message:
  5470.  
  5471.                 File not found
  5472.  
  5473.            is displayed,  ignore it  and enter the following command
  5474.            to change to the tutorial directory:
  5475.  
  5476.                 cd \nedtut<Enter>
  5477.  
  5478.            Now at the DOS prompt enter the following command:
  5479.  
  5480.                 ned sample.bas<Enter>
  5481.  
  5482.            Since 'sample.bas' does not exist, NED will prompt you to
  5483.            confirm its creation. Press 'y' to proceed.
  5484.  
  5485.            The Program Header
  5486.            Firstly we  want to    create the program header. This will
  5487.            consist of  a few  comment lines  with the  filename  and
  5488.            date. Enter the following:
  5489.  
  5490.                 REM <Esc>F-,75<Ctrl Enter><Enter>
  5491.                 <Alt F><Alt F><Alt F><Alt F>
  5492.  
  5493.            In the  first line, the word 'REM' will be followed by 75
  5494.            '-' characters  from the  FILL command.    A  new    line  is
  5495.            opened up, the 'REM ' is field copied from the first line
  5496.            to the second line.
  5497.  
  5498.            Next you  need to  ensure that you are in insert mode. If
  5499.            the cursor appears as a quarter block you are in overtype
  5500.            mode, so  press INS    to change  to insert  mode.  If  the
  5501.            cursor appears  as a half block you are already in insert
  5502.            mode. Now type the following:
  5503.  
  5504.                 File name:<Tab><Tab><Alt H><Enter>
  5505.  
  5506.            Here we    have used  the ALT    H key  to insert the current
  5507.            filename at the cursor position. When in insert mode, the
  5508.            TAB inserts spaces up to the next tabstop. Now repeat the
  5509.            above field copy as follows:
  5510.  
  5511.            
  5512.            NED v1.7a User's Guide                            Page 100
  5513.  
  5514.                 <Alt F><Alt F><Alt F><Alt F>
  5515.                 Date created:<Tab><Alt Y>
  5516.  
  5517.            As above,  this copies the 'REM ' from the previous line,
  5518.            and inserts the current date/time at the end of the line.
  5519.  
  5520.            To complete the header we will copy the first line of the
  5521.            file to the end of the file. Press the following:
  5522.  
  5523.                 <Ctrl Home><Ctrl F3><Ctrl End><F2><Down>
  5524.                 <Enter><Enter>
  5525.  
  5526.            CTRL HOME  and CTRL    END move  the cursor to the first or
  5527.            last line  of the  file. After  the comment line has been
  5528.            inserted, two  blank lines  are opened up below it. Using
  5529.            Auto-indent and    Enter to  Format code  One of  the    most
  5530.            common program  constructs is  the 'if/else'.  NED has an
  5531.            Auto-indent feature which makes the entry of this type of
  5532.            structure easy.    To toggle  Auto-indent on,    press ALT I.
  5533.  
  5534.            The status of Auto-indent is displayed on the top line of
  5535.            the screen between memory free % and the line counter. If
  5536.            on, 'I'    appears in    bold attribute if off, it will be in
  5537.            normal attribute. Now enter the following:
  5538.  
  5539.                 if a = b<Right Shift Enter>
  5540.  
  5541.            You will  notice that  the cursor is now one tabstop into
  5542.            the new    line. This    is because    when you press the RIGHT
  5543.            SHIFT in  combination with ENTER NED moves the cursor one
  5544.            tabstop to the right. Now type:
  5545.  
  5546.                 if a = c<Right Shift Enter>
  5547.                 olda = a<Enter>
  5548.                 a = b<Left Shift Enter>
  5549.                 endif<Left Shift Enter>
  5550.                 endif<Enter>
  5551.  
  5552.            You will  notice that when you press ENTER by itself, the
  5553.            cursor  will   appear  under   the  first  non-whitespace
  5554.            character of  the previous  line. The  effect of pressing
  5555.            LEFT or    RIGHT SHIFT is to move the cursor one tabstop to
  5556.            the    left  or  right  of  that  position.  Now  type  the
  5557.            following:
  5558.  
  5559.                 else<Enter>
  5560.                 <Tab>oldb = b<Enter>
  5561.                 b = a
  5562.  
  5563.            Here the  ENTER and TAB keys perform the longhand version
  5564.            of the  RIGHT SHIFT    ENTER we used before. We now we want
  5565.            to move    these three  lines to  above the  last    'endif'.
  5566.            Press the following:
  5567.  
  5568.                 <F4><Up><Up><Del><Ctrl F2>
  5569.  
  5570.            Which enters  Block Mode,  selects the  last three lines,
  5571.            cuts them to the scrap buffer and finally CTRL F2 inserts
  5572.            
  5573.            NED v1.7a User's Guide                            Page 101
  5574.  
  5575.            the block above the current line. To finish this routine,
  5576.            enter the following:
  5577.  
  5578.                 <Right Shift Enter>If a = c
  5579.                 <Down><F4><Down><Tab><Esc>
  5580.                 <Down><Ctrl F3><F2><Home><Tab>
  5581.  
  5582.            This inserts  another 'if'  statement below    the  'else',
  5583.            enters Block Mode, selects the next two lines, moves them
  5584.            one tabstop    to the right and exits Block Mode. The third
  5585.            line takes  a copy  of the 'endif' line, inserts it under
  5586.            the current line. The cursor is moved to the start of the
  5587.            line and  the line  is moved  one tabstop  to the  right.
  5588.  
  5589.            Making Corrections  to code    Some versions  of BASIC will
  5590.            not accept the 'endif' as one word. To correct this enter
  5591.            the following:
  5592.  
  5593.                 <F4><Ctrl Right>s
  5594.  
  5595.            Here we    have used the 's' function in Block Mode to copy
  5596.            the 'endif'    to the search expression. This is a shortcut
  5597.            for the    SPECIFY command.  To make the replacements, type
  5598.            the following:
  5599.  
  5600.                 <Esc>Rend if,g<Enter>
  5601.  
  5602.            Each time  the search  expression is  found you    will  be
  5603.            prompted to    replace it    with 'end  if'. Answer    'y' each
  5604.            time you are prompted. NED will then display the message:
  5605.  
  5606.                 3 replaced, 0 overflows.
  5607.  
  5608.            showing you    the total  number of  replacements    and  the
  5609.            number of overflows. Overflows occur when the replacement
  5610.            text expands  the line to more than 256 characters. BASIC
  5611.            also requires a 'then' to follow the 'if' condition which
  5612.            we have    not included.  To correct  this we    will use the
  5613.            Regular Expression '^\s*if' to specify our search pattern
  5614.            and append  'then' to  the line.  We will also record the
  5615.            keystrokes needed  to do  this to  a macro  so  that  the
  5616.            process can be repeated. Enter the following:
  5617.  
  5618.                 S^\s*if<Ctrl Enter><Ctrl Home>
  5619.  
  5620.            The carat  '^' in  the expression specifies the beginning
  5621.            of a line, the '\s' which specifies a space character and
  5622.            the asterisk  '*' which    tells NED to match the preceding
  5623.            expression (being  the space)  zero    or    more  times.  To
  5624.            record the  edits for the first 'if' statement, press the
  5625.            following:
  5626.  
  5627.                 <F7><Alt F8><F8><End><Space Bar>then<F7>
  5628.  
  5629.            This begins recording the macro key ALT F8, then searches
  5630.            for the    first matching    'if' statement, moves to the end
  5631.            of that    line and adds ' then' and finishes recording the
  5632.            macro. Now  press ALT  F8 two  times to fix the remaining
  5633.            
  5634.            NED v1.7a User's Guide                            Page 102
  5635.  
  5636.            'if' statements.  The file should now look something like
  5637.            the following:
  5638.  
  5639.            REM -----------------------------------------------------
  5640.            REM File name:       SAMPLE.BAS
  5641.            REM Date created:   Wednesday 19/07/1989  12:55 pm
  5642.            REM -----------------------------------------------------
  5643.  
  5644.  
  5645.            if a = b then
  5646.                if a = c then
  5647.                    olda = a
  5648.                    a = b
  5649.                end if
  5650.            else
  5651.                if a = c then
  5652.                    oldb = b
  5653.                    b = a
  5654.                end if
  5655.            end if
  5656.            ~
  5657.            ~
  5658.            ~
  5659.            ~
  5660.            ~
  5661.            ~
  5662.            ~
  5663.            ~
  5664.  
  5665.            Getting a Copy of the Screen Layout
  5666.            It is  often necessary to design a screen layout prior to
  5667.            coding. In  this section  we will convert the menu screen
  5668.            'menu.txt' you  created in  the first  tutorial to  BASIC
  5669.            statements. If  you have  not created the menu screen, go
  5670.            back and complete Tutorial One. To start with, we need to
  5671.            open 'menu.txt' and copy its contents to the current file
  5672.            'sample.bas'. Enter the following:
  5673.  
  5674.                 <Esc>O<F1>
  5675.  
  5676.            This takes  you to File Display mode where you can select
  5677.            the file  'menu.txt' by    using the arrow keys to move the
  5678.            high-light to  the filename    and pressing  ENTER. If  you
  5679.            cannot find    'menu.txt' go back to the first tutorial and
  5680.            create it  as instructed.  Now press ESC to return to the
  5681.            Edit window and press the following keys:
  5682.  
  5683.                 <F4><Ctrl End><Ins>
  5684.  
  5685.            which will  copy the  entire file  to the  scrap  buffer.
  5686.            Return to  'sample.bas' by  using the  Status  screen  as
  5687.            follows:
  5688.  
  5689.                 <F10><Up><any key>
  5690.  
  5691.            When you  change areas  using the  Status screen, you may
  5692.            also press  the number of the area you wish to change to.
  5693.            To  insert    this  screen   into  your  file,  press  the
  5694.            
  5695.            NED v1.7a User's Guide                            Page 103
  5696.  
  5697.            following:
  5698.  
  5699.                 <Ctrl End><F2><Enter><Enter>
  5700.  
  5701.            Converting the Layout to Program Statements
  5702.            Now type the following:
  5703.  
  5704.                 CLS<Enter>
  5705.                 LOCATE<space bar><space bar>3,
  5706.  
  5707.            You now    need to  move the cursor to the beginning of the
  5708.            first line of the menu screen by pressing:
  5709.  
  5710.                 <Down><Home>
  5711.  
  5712.            Note the column number, then press:
  5713.  
  5714.                 <Up><End>
  5715.  
  5716.            then type the number of the column, which should be '30'.
  5717.            Then type the following:
  5718.  
  5719.                 PRINT "
  5720.  
  5721.            Now join the menu screen line by pressing the following:
  5722.  
  5723.                 <F3><Alt W><End>";
  5724.  
  5725.            The ALT    W removes  the leading spaces from the menu line
  5726.            and the '";' completes the 'PRINT' statement.
  5727.  
  5728.            We will now copy this line and use it as the basis of the
  5729.            next statement. Press the following:
  5730.  
  5731.                 <Ctrl F3><F2><Ctrl Right><Ctrl Right>
  5732.  
  5733.            which copies  the current  line and    inserts it below and
  5734.            then moves  the cursor  over the  row  parameter  of  the
  5735.            'LOCATE' statement.    Make sure  insert is  off  (overtype
  5736.            mode) and  enter '4'.  To complete  the    line  press  the
  5737.            following:
  5738.  
  5739.                 <Ctrl Right><Right><Alt D><F3><Alt W>";<Enter>
  5740.  
  5741.            which deletes  the copy of the 'PRINT' statement text and
  5742.            joins the  next line  from the menu layout. The next step
  5743.            is to  take a  copy of  the previous  line's 'LOCATE' and
  5744.            'PRINT' statements  and insert  them for the three option
  5745.            lines. To do this type the following:
  5746.  
  5747.                 <Up><F4><Ctrl Right><Ctrl Right><Right><Right><Ins>
  5748.                 <F7><Alt F2><Down><F2><Down><F2><Down><F2><F7>
  5749.  
  5750.            In addition    to inserting  the block,  this    records  the
  5751.            necessary keystrokes  to the  macro key    ALT F2 for later
  5752.            use. Now  move the  cursor to  the beginning of the first
  5753.            option line by pressing:
  5754.  
  5755.            
  5756.            NED v1.7a User's Guide                            Page 104
  5757.  
  5758.                 <Down><Home>
  5759.  
  5760.            Again, note    the column    number which should be '28'. Now
  5761.            press UP three times, then the following:
  5762.  
  5763.                 <Home><Ctrl Right>7<Right>28
  5764.                 <Down><Ctrl Left>9<Alt F><Alt F><Alt F>
  5765.                 <Down><Ctrl Left><Left>11<Alt F><Alt F><Alt F>
  5766.  
  5767.            This renumbers  the    'LOCATE'  statements  for  the    menu
  5768.            options. Note  the use  of field  copy ALT  F to copy the
  5769.            column number  from the    previous line.    We now    need  to
  5770.            append '";' to the end of each of these statements. To do
  5771.            this we    will copy  the characters  from a completed line
  5772.            and insert them at where needed. Press the following:
  5773.  
  5774.                 <Up><Up><Up><End><F4><Left><Left><Ins><Alt F2>
  5775.  
  5776.            Here we    have used  the macro you created above to insert
  5777.            the scrap at the end of these lines.
  5778.  
  5779.            We now  need to    remove the    blank lines from between the
  5780.            menu options. Press the following:
  5781.  
  5782.                 <Down><Down><Shift F2><Down><Shift F2>
  5783.  
  5784.            We will    record a macro to move the menu options to their
  5785.            'PRINT' statements. In this example we will also name the
  5786.            macro using the MACRO command. Press the following:
  5787.  
  5788.                 <Esc>MMove menu options<Enter><Shift Alt F4>
  5789.                 <Home><F4><End><Del><Up><Up><Up>
  5790.                 <End><Ctrl Left><Right><F2><Down><Down><F7>
  5791.  
  5792.            This macro has been assigned to ALT F14. It cuts the last
  5793.            menu option    and places    it between    the double quotes of
  5794.            the last 'PRINT' statement, then it returns the cursor to
  5795.            the previous  menu option.  Press SHIFT    F7 to  view  the
  5796.            Macro Report  screen. You  will notice  the name  of  the
  5797.            macro we have just recorded is displayed. The other macro
  5798.            we recorded    ALT F2    was not  named and thus displays the
  5799.            message '(untitled)'. Press any key to return to the Edit
  5800.            window.    Now  press    SHIFT  ALT    F4    twice  to  move  the
  5801.            remaining menu options.
  5802.  
  5803.            The last  step is to convert the two instruction lines to
  5804.            'LOCATE' and 'PRINT' statements. Open a new line and copy
  5805.            the 'LOCATE'  statement by pressing ENTER, and then ALT F
  5806.            eight times. Now press the following:
  5807.  
  5808.                 4,<Down><Shift F2><Shift F2><Shift F2>
  5809.                 <Shift F2><Shift F2>
  5810.  
  5811.            to remove  the blank  lines    between  the  code    and  the
  5812.            remainder of  the layout. To find our column number press
  5813.            HOME, note  the number  (which should  be 21),  and    then
  5814.            press the following:
  5815.  
  5816.            
  5817.            NED v1.7a User's Guide                            Page 105
  5818.  
  5819.                 <Up><End>21<Alt F><Alt F><Alt F><Alt F><Alt F>
  5820.                 <Alt F><Alt F><Alt F><Shift F2><F2><Ctrl F2>
  5821.  
  5822.            This inserts  a copy  a copy  of the line between the two
  5823.            menu instruction  lines. Note  that you    must press ALT F
  5824.            eight times. Now press:
  5825.  
  5826.                 <F3><Alt W><End>";
  5827.  
  5828.            This  completes    the  first    menu  instruction  line.  To
  5829.            compete the second line, press:
  5830.  
  5831.                 <Down><Down><Home><Ctrl Right><Alt D>
  5832.                 Esc to exit this menu<Alt C><Home>
  5833.  
  5834.            Note the column position (should be 29);
  5835.  
  5836.                 <End>";
  5837.  
  5838.            Which will  centre the  line.  To  correct  the    'LOCATE'
  5839.            statement, press the following:
  5840.  
  5841.                 <Up><Home><Ctrl Right><Right><Right><Right>
  5842.                 <Right>9<End><F3><Alt W><Shift F5>
  5843.  
  5844.            SHIFT F5  redraws the screen with the current line in the
  5845.            centre of  the window.  The screen  should look something
  5846.            like the following:
  5847.  
  5848.            CLS
  5849.            LOCATE  3,30:PRINT "S Y S T E M   M E N U";
  5850.            LOCATE  4,30:PRINT "=====================";
  5851.            LOCATE  7,28:PRINT "1 - DISPLAY DIRECTORY TREE";
  5852.            LOCATE  9,28:PRINT "2 - DISPLAY CHECKDISK INFO";
  5853.            LOCATE 11,28:PRINT "3 - DISPLAY DOS ENVIRONMENT";
  5854.            LOCATE 14,21:PRINT "Enter the number for the option you
  5855.            want";
  5856.            LOCATE 14,29:PRINT "or Esc to exit this menu";
  5857.            ~
  5858.  
  5859.            This finishes  the conversion to code of the menu screen.
  5860.            Firstly    we     will  close   'menu.txt'  and     then    save
  5861.            'sample.bas'. Enter the following:
  5862.  
  5863.                 <Alt 2><Esc>C<Enter>E<Enter>
  5864.  
  5865.            Since 'sample.bas'  is the only open file after we closed
  5866.            'menu.txt', NED    will exit to DOS after writing the file.
  5867.            This completes tutorial two.
  5868.  
  5869.  
  5870.  
  5871.            
  5872.            NED v1.7a User's Guide                            Page 106
  5873.  
  5874.            *********************************************************
  5875.            NED v1.7a User's Guide
  5876.            Appendix A. Messages
  5877.  
  5878.            The following  gives a description and  necessary  advice
  5879.            for the messages found in NED.
  5880.  
  5881.            number lines converted
  5882.                 NED  has  successfully    executed  a  DETAB    or    NTAB
  5883.                 command.
  5884.  
  5885.            number lines copied from Scrap
  5886.                 NED has  just copied   text from the Scrap into your
  5887.                 file.
  5888.  
  5889.            number lines ONLY copied from Scrap
  5890.                 NED has copied number of lines only. Usually because
  5891.                 there is  insufficient memory  or the maximum number
  5892.                 of lines has been reached.
  5893.  
  5894.            number lines copied to Scrap
  5895.                 NED has just copied text from your file into Scrap.
  5896.  
  5897.            number lines cut to Scrap
  5898.                 NED has  just cut (deleted) text from your file into
  5899.                 Scrap.
  5900.  
  5901.            number lines read
  5902.                 NED has successfully read a file.
  5903.  
  5904.            number lines sorted
  5905.                 NED has successfully sorted a file.
  5906.  
  5907.            number lines written
  5908.                 NED has successfully written your file.
  5909.  
  5910.            number% read
  5911.                 NED has read number% of a file.
  5912.  
  5913.            number replaced, number overflows.
  5914.                 NED has   told you how many replacements it made and
  5915.                 the number of overflows that occurred in your file.
  5916.  
  5917.            number% written
  5918.                 NED has written number% of your file.
  5919.  
  5920.            Area Not Open !
  5921.                 You have attempted to select an unopened area.
  5922.  
  5923.            Auto-detab off
  5924.                 NED will not detab a file when it is read.
  5925.  
  5926.            Auto-detab on
  5927.                 NED will detab a file when it is read.
  5928.  
  5929.            Auto-entab off
  5930.                 NED will not entab a file when it is written.
  5931.  
  5932.            
  5933.            NED v1.7a User's Guide                            Page 107
  5934.  
  5935.            Auto-entab on
  5936.                 NED will entab a file when it is written.
  5937.  
  5938.            Backup Creation Error, using default
  5939.                 A backup   file could  not be  made in the specified
  5940.                 backup directory. The current directory is used.
  5941.  
  5942.            Bad Area !
  5943.                 You specified an invalid area number.
  5944.  
  5945.            Bad Fill Spec or Not Valid to Fill
  5946.                 Your fill  specification is invalid or the number of
  5947.                 characters to fill will not fit in the current line.
  5948.  
  5949.            Bad Line Number !
  5950.                 You specified a non-existent line number.
  5951.  
  5952.            Bad Replacement Specification.
  5953.                 You  haven't  entered  a  search  expression  or  no
  5954.                 replacement specification was given.
  5955.  
  5956.            Bad Tab Stop
  5957.                 You specified  an    tabstop setting  out of range or
  5958.                 order.
  5959.  
  5960.            Background is busy
  5961.                 The spooler  is still  busy in    background mode. You
  5962.                 cannot exit  to DOS  or switch    the  background  off
  5963.                 until spooling is finished.
  5964.  
  5965.            (Block Mode)
  5966.                 You have just entered block mode.
  5967.  
  5968.            Buffer full, Continue ? (Y/N)
  5969.                 The file  that NED was trying to read is bigger than
  5970.                 the area  buffer. If  you continue,  NED  will    only
  5971.                 recognize lines  up to the buffer size. Increase the
  5972.                 MAXLINES statement in CONFIG.NED and reload.
  5973.  
  5974.            Can't Create BACKUP Directory
  5975.                 The BACKUP    directory you  specified  could  not  be
  5976.                 created (e.g. volume name or a bad directory name).
  5977.  
  5978.            Can't load Help File
  5979.                 Either NHELP.EXE  or NCAL.EXE  is not in the current
  5980.                 directory or  it is not on the PATH or else there is
  5981.                 not enough memory to load it.
  5982.  
  5983.            Can't open file
  5984.                 The filespec  given could not be opened (e.g. it was
  5985.                 a subdirectory or a wildcard).
  5986.  
  5987.            Can't open spool file
  5988.                 A temporary  file needed by the spooler could not be
  5989.                 opened. Check DOS for insufficient disk space or too
  5990.                 many  files.   Don't  delete  spooler  files  (those
  5991.                 matching sp??????) when shelling to DOS.
  5992.  
  5993.            
  5994.            NED v1.7a User's Guide                            Page 108
  5995.  
  5996.            Can't open spoolfile (file)
  5997.                 The temporary spoolfile (the file you printed) could
  5998.                 not be opened. Check DOS for insufficient disk space
  5999.                 or too many files.
  6000.  
  6001.            Changes will be lost, Confirm (Y/N)
  6002.                 You've just  told NED  to close  a    file  which  has
  6003.                 changed. If you answer 'Y' the changes will be lost.
  6004.  
  6005.            'char' Filled  number  Times
  6006.                 NED has successfully  filled a char number of times.
  6007.  
  6008.            CONFIG.NED written to disk
  6009.                 NED  has   just  written  its  current    settings  to
  6010.                 CONFIG.NED.
  6011.  
  6012.            Create BACKUP Directory ? (Y/N)
  6013.                 The BACKUP    directory you  specified does not exist.
  6014.                 If you    answer 'Y'    NED will  attempt to  create it.
  6015.  
  6016.            Cursor must point to {([«<!?¿¡>»])}
  6017.                 The  brace    matching  function    only works    when the
  6018.                 cursor points to one of the listed characters.
  6019.  
  6020.            DOS: Type 'EXIT' to come back ...
  6021.                 You've just shelled to DOS.
  6022.  
  6023.            End of File List reached
  6024.                 There are  no more files in the File List to open or
  6025.                 there is no File List.
  6026.  
  6027.            End Record (macrokey)
  6028.                 You have  just finished  recording a Macro (e.g. ALT
  6029.                 F1).
  6030.  
  6031.            Enter MACRO Name or <ret> for none
  6032.                 You've entered    the MACRO command. You can specify a
  6033.                 name for  a macro  and begin  recording or rename an
  6034.                 existing macro.
  6035.  
  6036.            Enter Target Key (ALT F1-20)
  6037.                 You have  just started    a  Macro  record.  You    must
  6038.                 assign the Macro to a function key.
  6039.  
  6040.            Error Reading !
  6041.                 NED has  encountered a    DOS error  whilst reading  a
  6042.                 file.
  6043.  
  6044.            Error Writing !
  6045.                 NED has  encountered a    DOS error whilst writing the
  6046.                 file.
  6047.  
  6048.            File Exists! Overwrite (Y/N) ?
  6049.                 You have  specified a  filename which exists. If you
  6050.                 answer 'Y' its contents will be overwritten with the
  6051.                 current file.
  6052.  
  6053.            Insufficient Memory !
  6054.            
  6055.            NED v1.7a User's Guide                            Page 109
  6056.  
  6057.                 You have  requested an    operation for which there is
  6058.                 insufficient memory to perform.
  6059.  
  6060.            Insufficient Memory to Store Line
  6061.                 We just  ran out  of memory!  Save your  file(s) and
  6062.                 exit to DOS.
  6063.  
  6064.            Insufficient memory to use MACROS
  6065.                 Not enough    memory is  left to use Macros. Usually a
  6066.                 start-up error.  Use CHKDSK  to see  that  there  is
  6067.                 sufficient memory to load NED.
  6068.  
  6069.            Insufficient memory to use SPOOLER
  6070.                 Not enough    memory    is    left  to  use  the    spooler.
  6071.                 Usually a  start-up error.    Use CHKDSK    to see    that
  6072.                 there is sufficient memory to load NED.
  6073.  
  6074.            Invalid column sort width
  6075.                 The columns  you have  specified are out of range or
  6076.                 non-existent for sorting with the ZSORT command.
  6077.  
  6078.            Invalid directory name
  6079.                 You have specified an invalid directory name for the
  6080.                 BACKUP command. Check with your DOS manual for valid
  6081.                 directory name characters.
  6082.  
  6083.            Invalid filename
  6084.                 You have  specified an    invalid filename. Check with
  6085.                 your DOS manual for valid filename characters.
  6086.  
  6087.            Invalid MACRO File or File name !
  6088.                 You have specified a corrupted or non-existent Macro
  6089.                 file.
  6090.  
  6091.            Invalid print page layout
  6092.                 You  have  specified  a  page  layout  that  is  not
  6093.                 possible  (e.g.  the  top  and    bottom    margins  are
  6094.                 greater than the page length).
  6095.  
  6096.            Invalid right hand margin
  6097.                 The right  hand margin for word wrap must be between
  6098.                 1 and 256.
  6099.  
  6100.            Invalid sort offset
  6101.                 The sort width given is not valid (e.g. the width is
  6102.                 greater than the maximum number of columns).
  6103.  
  6104.            Invalid timeslice value
  6105.                 The timeslice must be an integer between 1 and 8192.
  6106.  
  6107.            Key entered Not a valid MACRO key !
  6108.                 You have  specified an invalid Macro key. Macro keys
  6109.                 must be between (ALT F1-20).
  6110.            
  6111.            NED v1.7a User's Guide                            Page 110
  6112.  
  6113.  
  6114.            MACROS Restored from File
  6115.                 NED has successfully loaded a Macro file.
  6116.  
  6117.            MACROS Saved to File
  6118.                 NED has successfully saved a Macro file.
  6119.  
  6120.            Mark Found
  6121.                 You have just executed the goto mark key and NED has
  6122.                 found a marker.
  6123.  
  6124.            Mark Not Found !
  6125.                 You have just executed the goto mark key and NED has
  6126.                 not found a marker.
  6127.  
  6128.            Mark removed
  6129.                 The mark on the current line has been removed.
  6130.  
  6131.            Mark set
  6132.                 The current line has been marked.
  6133.  
  6134.            Match Not Found !
  6135.                 NED did not find a matching {([«<!?¿¡>»])}
  6136.  
  6137.            (new file)
  6138.                 You are editing a new file.
  6139.  
  6140.            No Free Areas left !
  6141.                 You already have ten open areas.
  6142.  
  6143.            ok
  6144.                 Operation successful.
  6145.  
  6146.            Ok to Create ? (Y/N)
  6147.                 You have  specified a  file which does not exist. If
  6148.                 you enter 'Y' NED will attempt to create it.
  6149.  
  6150.            Overwrite old MACRO File ? (Y/N)
  6151.                 You have  just told  NED to  KEEP a  macro file that
  6152.                 already  exists.  If  you  answer  'Y'    it    will  be
  6153.                 overwritten.
  6154.  
  6155.            Overwriting old BACKUP file
  6156.                 The previous  backup file  is being overwritten with
  6157.                 the current backup file.
  6158.  
  6159.            (pattern) not Found
  6160.                 NED did not find the search pattern you specified.
  6161.  
  6162.            Press F1 for File Display
  6163.                 You have issued an OPEN, WRITE, END, BACKUP or MACRO
  6164.                 command. You may enter File Display mode by pressing
  6165.                 F1.
  6166.  
  6167.            Printer Off Line. Check & Retry.
  6168.                 The printer  does  not    respond  to  initialization.
  6169.                 Check it and retry.
  6170.  
  6171.            
  6172.            NED v1.7a User's Guide                            Page 111
  6173.  
  6174.            Printer Not Ready, Continue ? (Y/N)
  6175.                 The printer  is not  on line  and can't be selected.
  6176.                 Check and press 'Y' to proceed.
  6177.  
  6178.            (processing line linenumber)
  6179.                 NED is    processing line linenumber of the file (e.g.
  6180.                 printing).
  6181.  
  6182.            Recording (macrokey)
  6183.                 You are now recording a Macro (e.g. ALT F1).
  6184.  
  6185.            Replace ? (Y/N)
  6186.                 You have  just issued  a REPLACE  command.    NED  has
  6187.                 found a match and is asking you to confirm replacing
  6188.                 it with the new string.
  6189.  
  6190.            (replacing)
  6191.                 NED is replacing text.
  6192.  
  6193.            (S)ave, (A)bort or (C)ancel ?
  6194.                 You have just tried to QUIT without saving a changed
  6195.                 file. Enter S, A or C.
  6196.  
  6197.            Save this file ? (Y/N)
  6198.                 You have  just issued a LAUNDRY command with the 'p'
  6199.                 option. NED has recorded changes in this file and is
  6200.                 asking you to confirm the save.
  6201.  
  6202.            Spool file killed
  6203.                 You have just removed a selected file from the spool
  6204.                 queue.
  6205.  
  6206.            Spooler empty or area not used
  6207.                 You have  attempted to    remove a  spool file that is
  6208.                 not in the queue.
  6209.  
  6210.            Spooler not active
  6211.                 You have  attempted to    issue a spooler command when
  6212.                 it is not active.
  6213.  
  6214.            Spooler off
  6215.                 You have  just pressed    CTRL F6. Background printing
  6216.                 is disabled.
  6217.  
  6218.            Spooler on
  6219.                 You have  just pressed    CTRL F6. Background printing
  6220.                 is enabled.
  6221.  
  6222.            Spooler queue is full
  6223.                 There are already 10 files in the queue.Wait until a
  6224.                 few have been printed and try again.
  6225.  
  6226.            Spooling resumed
  6227.                 You have  just issued  the Vp command while spooling
  6228.                 was suspended.
  6229.  
  6230.            Spooling suspended
  6231.                 You have  just issued  the Vp command while spooling
  6232.            
  6233.            NED v1.7a User's Guide                            Page 112
  6234.  
  6235.                 was active.
  6236.  
  6237.            Spooler terminated
  6238.                 The current  spool file  has been  aborted    and  all
  6239.                 files in the spooler queue have been removed.
  6240.  
  6241.            Strip off
  6242.                 NED will  not strip  trailing whitespace  characters
  6243.                 when writing a file.
  6244.  
  6245.            Strip on
  6246.                 NED will  strip trailing  whitespace characters when
  6247.                 writing a file.
  6248.  
  6249.            Unrecognized spooler command
  6250.                 Check  the    function  reference  section  for  valid
  6251.                 spooler commands.
  6252.            
  6253.            NED v1.7a User's Guide                            Page 113
  6254.  
  6255.            *********************************************************
  6256.            NED v1.7a User's Guide
  6257.            Index
  6258.  
  6259.                   '*' function                              18
  6260.                   'a' parameter                       23, 48
  6261.                   'At' files                          11, 31
  6262.                   'c' function                              19
  6263.                   'k' parameter                       36, 51
  6264.                   'n' parameter                           51
  6265.                   'p' parameter                       17, 44
  6266.                   'r' function                              19
  6267.                   'r' option                          33, 45
  6268.                   'r' parameter                           50
  6269.                   's' function                          18, 19
  6270.                   's' parameter                       24, 31
  6271.                   't' command                              51
  6272.  
  6273.                   1MARGIN command                      19, 53
  6274.                   43/50 line modes                      37, 71
  6275.  
  6276.                   ALT 0 to ALT 9                          16
  6277.                   ALT F1 to ALT F20                   33, 45
  6278.                   ALT generation method                   13
  6279.                   AREA command                          16, 40
  6280.                   ASCII tables                          37, 62
  6281.                   ASTERISK                                  86
  6282.                   Auto-detab                          20, 66
  6283.                   Auto-entab                          20, 65
  6284.                   Auto-indent                          57, 68
  6285.                   AUTOINDENT statement                  27, 73
  6286.  
  6287.                   Background printing                  30, 35
  6288.                   BACKUP command              15, 24, 27, 40
  6289.                   Backup dir                              20
  6290.                   BACKUP statement                          73
  6291.                   Begin recording                          64
  6292.                   Blank previous character                  56
  6293.                   Block mode                          18, 60
  6294.                   BOLDFACE                                  89
  6295.                   Brace match                              61
  6296.                   Browse                          15, 31, 46
  6297.  
  6298.                   Calculator                              36
  6299.                   CARAT                                   85
  6300.                   Centre justify                      17, 66
  6301.                   CGA                                   29,71
  6302.                   Character case flip                      68
  6303.                   CLOSE command                       16, 41
  6304.                   Colour                          27, 37, 71
  6305.                   COLOUR statement                      27, 72
  6306.                   Column 256                             102
  6307.                   Command area                      12, 15, 57
  6308.                   Command mode                          15, 41
  6309.                   Command selection mode                  15
  6310.            
  6311.            NED v1.7a User's Guide                            Page 114
  6312.  
  6313.                   Commands                                  40
  6314.                   Comments                                  26
  6315.                   Compulsory parameters                   40
  6316.                   CONDENSED                               90
  6317.                   CONFIG.NED                          26, 73
  6318.                   Copy a line                              17
  6319.                   Copy file to list                       32
  6320.                   Copy line                               17
  6321.                   Copy to last parameter string       18, 19
  6322.                   Copy to scrap                       17, 18
  6323.                   Copy to search string                   19
  6324.                   Current dir                              20
  6325.                   Current keystroke number                  33
  6326.                   Current Search Expression               21
  6327.                   Cut to scrap                              19
  6328.  
  6329.                   Date/Time                               20
  6330.                   Date/Time string                          70
  6331.                   DATEFMT statement                   27, 73
  6332.                   Decimal                              36, 63
  6333.                   Default delimiter                       17
  6334.                   Delete character                          56
  6335.                   Delete file from list               33, 83
  6336.                   Delete line                              60
  6337.                   Delete list                              33
  6338.                   Delete next word                      17, 70
  6339.                   Delete previous word                  17, 69
  6340.                   DETAB                               41, 74
  6341.                   Directory area                          32
  6342.                   DOLLAR                                  85
  6343.                   DOS command line                          11
  6344.                   DOS commands                          54, 61
  6345.                   DOS shell                               61
  6346.  
  6347.                   Editing window                      11, 12
  6348.                   EGA                                      29
  6349.                   ELONGATED                               90
  6350.                   Embedded printer commands               89
  6351.                   END command                      16, 23, 42
  6352.                   End window                              14
  6353.                   ENHANCED                                  89
  6354.                   ENTAB                                   74
  6355.                   Entering parameters                      15
  6356.                   Erase line                          17, 68
  6357.                   Erase to end                              17
  6358.                   Erase to start                          66
  6359.                   ESCAPE SEQUENCES                          90
  6360.                   Example macro file                      34
  6361.                   Exit Command mode                       57
  6362.  
  6363.                   Field copy                          17, 67
  6364.                   FILE                                      26
  6365.                   File Display Mode                       31
  6366.                   File List                       11, 15, 30
  6367.                   FILE statement                      26, 74
  6368.                   Filename string                          68
  6369.                   FILL command                          42, 99
  6370.            
  6371.            NED v1.7a User's Guide                            Page 115
  6372.  
  6373.                   Finish recording                          33
  6374.                   First column                              28
  6375.                   First/Last line                          80
  6376.                   FIRSTCOL statement              28, 66, 75
  6377.                   Force a write                           16
  6378.                   FORM FEED                               89
  6379.                   Free memory                          20, 47
  6380.                   Freeze cursor                           58
  6381.                   Freeze/thaw                              62
  6382.                   Function keys                        8, 15
  6383.  
  6384.                   GOTO                                  43, 68
  6385.                   Goto column 1                       14, 66
  6386.                   Goto mark                               65
  6387.                   GOTO statement                      28, 75
  6388.  
  6389.                   Hard Escape                          13, 72
  6390.                   Hard-tab                          13, 20, 69
  6391.                   HARDTAB statement                   28, 75
  6392.                   HELP command                          13, 43
  6393.                   Hexadecimal                          36, 37
  6394.                   High-bit characters                      13
  6395.  
  6396.                   IGNORE PAPER OUT                          89
  6397.                   Infix                               36, 63
  6398.                   INSERT                                 112
  6399.                   Insert mode                          13, 57
  6400.                   INSERT statement                      28, 75
  6401.                   Installation                               9
  6402.                   INTENSITY statement              28, 37, 76
  6403.                   Interword chars                  17, 20, 43
  6404.                   INTERWORD command                   17, 43
  6405.                   INTERWORD statement                  29, 76
  6406.  
  6407.                   JEJECT                                  44
  6408.                   Join line                           17, 60
  6409.                   Justified                               17
  6410.  
  6411.                   KEEP command                          34, 44
  6412.  
  6413.                   Last parameter              15, 19, 32, 40
  6414.                   Last search specification               15
  6415.                   LAUNDRY command                  16, 44, 97
  6416.                   LAYOUT statement                      29, 52
  6417.                   Left justify                      17, 18, 68
  6418.                   Left tab                                  58
  6419.                   Line case flip                      17, 67
  6420.                   LINES PER INCH                          90
  6421.  
  6422.                   MACRO command                   15, 33, 44
  6423.                   Macro report                      34, 45, 64
  6424.                   Macros                                  33
  6425.                   MAXLINES statement          12, 29, 46, 77
  6426.                   Memory resident program                  61
  6427.                   MODE statement                      29, 77
  6428.                   Move block left/right a space       18, 82
  6429.                   Move block left/right a tabstop          81
  6430.                   Move to file list                       83
  6431.            
  6432.            NED v1.7a User's Guide                            Page 116
  6433.  
  6434.  
  6435.                   NCAL.EXE                                  36
  6436.                   NHELP.EXE                               13
  6437.                   Notational conventions                   7
  6438.                   NTAB command                              45
  6439.  
  6440.                   OPEN command                  15, 16, 30, 45
  6441.                   Open new line above                      57
  6442.                   Open new line below                      56
  6443.                   Open next file                      16, 59
  6444.                   Overtype mode                       13, 28
  6445.  
  6446.                   Page layout                              29
  6447.                   Parameter entry mode                      15
  6448.                   PATH                                       9
  6449.                   PERIOD                                  85
  6450.                   Positioning keys                          13
  6451.                   Previous/Next character                  56
  6452.                   Previous/Next line                      55
  6453.                   Previous/Next page                      55
  6454.                   Previous/Next word                  14, 56
  6455.                   Print a file                              34
  6456.                   PRINT command                       34, 47
  6457.                   Print the current file                  47
  6458.  
  6459.                   QUIT command                          23, 48
  6460.  
  6461.                   Re-sort the directory                   32
  6462.                   Record macro                              33
  6463.                   Recording macros                      33, 44
  6464.                   Redraw                                  62
  6465.                   Regular Expression Language      21, 49, 85
  6466.                   Rename an existing macro                  33
  6467.                   REPLACE command              15, 21, 23, 48
  6468.                   Restore                              17, 59
  6469.                   Restore above                       18, 60
  6470.                   Restore scrap                           17
  6471.                   Retrace interval                          71
  6472.                   Reverse Video                       18, 32
  6473.                   Right justify                           69
  6474.                   Right tab                               13
  6475.                   Ruler display                       12, 68
  6476.                   RULER statement                      23, 77
  6477.  
  6478.                   Save configuration                      87
  6479.                   Save file                               16
  6480.                   Scrap buffer                          12, 17
  6481.                   Screen colours                          37
  6482.                   Scroll bar                              33
  6483.                   Search down                              21
  6484.                   Search from top                          21
  6485.                   Search keys                              21
  6486.                   Search up                               21
  6487.                   Select file                              84
  6488.                   Select File List                          58
  6489.                   Set/remove mark                          65
  6490.                   SHIFT TAB                           13, 58
  6491.                   Snow                                      71
  6492.            
  6493.            NED v1.7a User's Guide                            Page 117
  6494.  
  6495.                   SNOW statement                      29, 78
  6496.                   Sort directory                          84
  6497.                   SORT statement                      29, 78
  6498.                   SPECIAL CHARACTERS                      87
  6499.                   Special escape sequences                  90
  6500.                   Special keys                              15
  6501.                   SPECIFY                  15, 18, 21, 48, 49
  6502.                   Split line                          17, 60
  6503.                   Split line enter                      19, 72
  6504.                   SPOOL statement                      30, 78
  6505.                   Spooler                                  35
  6506.                   SQUARE BRACKETS                          86
  6507.                   Start next line                      14, 68
  6508.                   Start previous line                  14, 69
  6509.                   Start window                          14, 66
  6510.                   Start/End line                      13, 55
  6511.                   Status Screen                           20
  6512.                   Strip                               20, 51
  6513.                   STRIP statement                      30, 78
  6514.                   SUBSCRIPT                               89
  6515.                   SUPERSCRIPT                              89
  6516.                   System information                      11
  6517.                   System window                           11
  6518.  
  6519.                   TAB                              13, 18, 58
  6520.                   TABSET                                  49
  6521.                   TABSET statement                      30, 78
  6522.                   Terminate Stay Resident              47, 61
  6523.                   Timeslice                           30, 50
  6524.                   Top/Bottom screen                   14, 55
  6525.                   Trailing whitespace characters      30, 64
  6526.                   Typewriter                              12
  6527.  
  6528.                   UNDERLINE                               90
  6529.                   Underscore                              18
  6530.                   Undo                                  18, 69
  6531.                   USE command                      31, 34, 50
  6532.  
  6533.                   VGA                                      29
  6534.                   VSPOOL command                      36, 50
  6535.  
  6536.                   Wildcard specification              11, 31
  6537.                   Word wrap                               70
  6538.                   WORDWRAP statement              20, 30, 53
  6539.                   WRITE command                       16, 51
  6540.                   Write list                              33
  6541.  
  6542.                   XSAVE command                       31, 51
  6543.  
  6544.                   YLAYOUT command                      35, 52
  6545.  
  6546.                   ZSORT command                           52
  6547.